It seems like you are facing issues with the Windows Update. You can try these few steps mentioned here to resolve the problem.
- I would suggest you run the Windows update troubleshooter.
- Press the Windows Logo and W key on your keyboard.
- Type troubleshooter and select troubleshooting/troubleshooter.
- On the left side of the screen, click on View all.
- From the list of options available, click on Windows update.
- Click on Next and follow the onscreen instructions to start and begin the troubleshooter.
If the troubleshooting of Windows update does not help resolve the issue, then I would suggest you to go through this Microsoft article and follow the resolution steps mentioned for Windows 10