Hi MartinB, thanks for sharing the details. The error code 0x800f0991 usually indicates a problem with Windows Update components or corrupted system files. First, try running the Windows Update Troubleshooter by going to Settings, then System, then Troubleshoot, and selecting Other troubleshooters. Run the Windows Update troubleshooter and apply any fixes it suggests. Second, reset the Windows Update components manually by opening Command Prompt as Administrator and stopping the update services, renaming the SoftwareDistribution and Catroot2 folders, and then restarting the services. After that, restart your PC and try the update again. If the issue persists, you can download and install KB5066835 manually from the Microsoft Update Catalog at https://www.catalog.update.microsoft.com. Finally, if none of these steps work, run DISM and SFC to repair system files using the commands DISM /Online /Cleanup-Image /RestoreHealth and sfc /scannow in an elevated Command Prompt.
If you found the response helpful feel free to mark my answer as helpful/accepted, it might make it easier for others to find the solution too.
Best,
Carl