Booting into BIOS can fix the problem because it allows you to boot from a Windows ISO image instead of the hard drive. You can then use the ISO image to perform a clean install.
What’s puzzling is that you said that your computer is stuck in a boot loop, and you tried to reset it but got an error message. But if it’s stuck in a boot loop, then it is impossible to reach the screen needed to reset it.
Is the issue that your computer is stuck in a loop of continuous restarts, or is the issue that your computer won’t let you reset it?