The process to reinstall Windows if something within your operating system has gotten seriously messed up is tricky. Unless you have a boot drive that you can use to restore it, the process usually involves using the “Reset this PC” option and deleting all your settings and apps, and starting up from a clean or semi-clean slate. Not ideal. For some reason, Windows lacks an option to repair your operating system that’s not the regular “reset your PC” button, but that’s soon to change.
Source : Windows 11 Will Soon Let You Reinstall Without Deleting Your Data