I opened the BIOS on an MSI motherboard and enabled the Windows 10 WHQL option, and then I clicked on Save and Reboot. After that, my computer only boots into a jumbled BIOS that I can only explore for a few seconds before it freezes, and it also freezes as soon as I choose any option, and there's no way for me to get into Windows 10. I am unsure of the motherboard model, but the screen shows this code: E7A15IMS.100.
61 Answer
Erasing the CMOS memory worked. I did not remove the battery to do so, either. I downloaded my motherboard's manual from the internet and found the pins that let me reset the CMOS (this is an MSI motherboard, they were labeled as JBAT1). Connecting both pins with a paperclip was enough to fix the problem. Afterwards I plugged my computer back in and was welcomed with a "BIOS settings have been reset to default" style message.
If you ever do this yourself, make sure to completely power off and unplug your computer, then wait a few minutes. Some motherboards even have a button to reset the CMOS, or come with a jumper specially designed to do this, but a paperclip works just fine, even taking out the battery (if you're able to, because I wasn't) can work. Also, thank you @Neil for your help.