I shall suggest you to go for a fresh or clean install.
On another PC you visit here:
https://www.microsoft.com/en-in/software-download/windows11
and download the Media Creation Tool. Create a bootable USB (8GB or larger). Plug the USB into your locked PC. Go to Boot menu (by pressing F12/F2/Del/ESC depending on the system) and select boot from USB.
Follow onscreen instructions and delete all the partitions.
Select the unallocated space, click Next, and let Windows reinstall.