If you get an error code while downloading and installing Windows updates, the Update Troubleshooter can help resolve the problem.
Select Start > Settings > Update & Security > Troubleshoot > Additional troubleshooters. Next, under Get up and running, select Windows Update > Run the troubleshooter.
When the troubleshooter is finished running, it's a good idea to restart your device.
Next, check for new updates. Select Start > Settings > Update & Security > Windows Update > Check for updates, and then install any available updates.
If the problems aren't all resolved, try running the troubleshooter again to check for additional errors, or see Fix Windows Update errors and follow the troubleshooting steps.
For more Windows Update troubleshooting info, see Troubleshoot problems updating Windows 10.