Go to Settings > System > Troubleshoot > Other troubleshooters, click Run next to Windows Update and follow the instructions. Then restart the PC and check for updates again.
If the error continues, go to Settings > System > Recovery and, under “Fix problems using Windows Update”, click “Reinstall now”. This reinstalls the current version of Windows and keeps your apps, files and settings.
You can see more information in this article:
https://support.microsoft.com/windows/deployment/install-upgrade/fix-issues-by-reinstalling-the-current-version-of-windows