Try these fixes to resolve the issue -
* Enter Safe Mode.
* Delete Recently Installed Updates.
* Run '''Windows''' Update Troubleshooter.
* Run A Startup Repair.
* Run DISM Tool.
* Delete the SoftwareDistribution Folder.
* Enable the App Readiness Service.
* Run a System File Checker Scan.
Hope it helps
source: https://softwarelozi.com/how-to-fix-windows-10-undoing-changes-made-to-your-computer/