Hi
Please enter your OEM restore menu from the boot screen. It will allow you to restore the OS to it's state.
If you can't, you can use another computer to create a media tool to install windows 10/11. There for the direct link; https://support.microsoft.com/en-us/windows/create-installation-media-for-windows-99a58364-8c02-206f-aa6f-40c3b507420d
With the tool on a USB stick, you can boot on it to reinstall over.