Here's the steps you can try.
-Click Start, type CMD and run as administrator
-Copy and paste each of the command below and hit enter.
sfc /scannow
Wait until the command finishes scanning any corrupted system files then proceed with the next command.
DISM /Online /Cleanup-Image /RestoreHealth
Once done proceed with these steps.
Reset Windows Update Components.
Go to this link and download the Windows Update Agent.
https://gallery.technet.microsoft.com/scriptcen...
-Once you download the zip look for the folder ResetWUeng and drag it to your desktop.
-Go to your desktop, right click on the file and run it as administrator
-Press Y and enter to continue then choose number 2 to Reset the Windows Update components
Disclaimer: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.
Once done restart your device and try to install the update again.
If issue persist you try the repair upgrade this will re-install the Windows without affecting your files and apps, it will repair and replace any corrupted system files.
Step 1: Download Media Creation Tool from Microsoft.
https://www.microsoft.com/en-us/software-downlo...
Step 2: Run MediaCreationTool.exe.
Step 3: Choose "Upgrade this PC now".
Step 4: Select "Keep personal files and apps".
Step 4: Let it install