If you get an error code that starts with 0x8024, the Windows Update Troubleshooter can help resolve the problem. Make sure you have internet access, then download the Update Troubleshooter version that matches your version of Windows.
Run the troubleshooter. When it's done, it's best practice to restart your device. Then check for new updates. Go to Start > Settings > Update & Security > Windows Update. Select Check for updates and install any available updates.
If the problems aren't all resolved, try running the troubleshooter again to check for additoional errors. Or you can get a guided walk-through to fix errors manually.