On Windows 10, you can use the DISM command tool to repair the local image, which you can use with the System File Checker ...
If you've installed the big Windows 11 update that Microsoft pushed out in August (which also includes the new Black Screen of Death), you'll notice a brand new entry in Settings: Quick Machine ...