Before you go that far, try running DISM:
Deployment Image Servicing and Management (DISM):
Open an Administrator Command Prompt any try the following prompts in order one at a time.
⦁ The CheckHealth option in DISM lets you quickly determine if there are any corruptions inside the local image, but the option won't perform any repairs.
C:\WINDOWS\system32>DISM /Online /Cleanup-Image /CheckHealth
⦁ The ScanHealth option performs a more advanced scan to determine if the image has any problems.
C:\WINDOWS\system32>DISM /Online /Cleanup-Image /ScanHealth
⦁ If there are issues with the system image of Windows 11, use DISM with the
RestoreHealth option to run an advanced scan and repair problems automatically.
C:\WINDOWS\system32>DISM /Online /Cleanup-Image /RestoreHealth
Here is an article on Windows Central which will explain this process in detail:
https://www.windowscentral.com/software-apps/windows-11/how-to-use-dism-to-repair-local-image-on-windows-11