The Windows update is corrupted or missing system files and the wrong update service settings will cause this issue. Please try the following steps and see if that fixes
Step 1: Run the Windows update troubleshooter
Select Start > Settings > System > Troubleshoot > Other troubleshooters. Next, under Most Frequent, select Windows Update > Run.
Step 2: Reset Windows Components
- Type the Command Prompt in the search box of Windows. Right-click it and choose Run as administrator to continue.
- Once the command prompt opened. Type these commands in the command prompt and press Enter each time:
net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc
Ren C:\Windows\SoftwareDistribution.old
Ren C:\Windows\System32\catroot2 Catroot2.old
net start bits
net start wuauserv
net start appidsvc
net start cryptsvc
Exit the command prompt and restart the computer.
Step 3: Run SFC and DISM Tools
- Type the Command Prompt in the search box of Windows. Right-click it and choose Run as administrator to continue.
- In the command prompt type the below command and hit Enter to continue.
sfc /scannow
- Please do not close the command line window until you see the message verification is 100% completed.
After that, type the following commands and hit Enter to continue.
DISM /online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
When it is finished, restart the computer and try again to update Windows to see if the error still occurs.
I hope this will help you to sort out the issue. Please let me know if you need further assistance. Thank you!
Regards
Gopal