Open Command Prompt as Admin and type the following commands and hit the Enter key after each command:
net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc
Type this command and press enter: Ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
Type this command and press enter: Ren C:\Windows\System32\catroot2 Catroot2.old
Start Windows components: type these commands and press enter each time:
net start bits
net start wuauserv
net start appidsvc
net start cryptsvc
Restart the computer and try again to update Windows to see if the error still occurs.