Hello,
Try to revert pending actions via dism command
1. Access to an elevated command prompt either in normal or safe mode. If you cannot boot into windows, you may need to run it from the Windows Recovery Console.
2. Execute the command: dism.exe /image:C:\ /cleanup-image /revertpendingactions.
3. Reboot your machine into safe mode.
4. In the safe mode, open an elevated Command Prompt and run the “sfc/scannow” command again.
5. Then reboot the computer in normal mode and execute the DISM with /online option.
Best Regards,
Hania Lian
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.