Update: I managed to "fix" this issue by factory resetting my PC through the recovery menu and I backed up all important data on an external hard drive as well.
I hope someone figures out a less drastic way to solve this, especially should the issue return.
To anyone trying to reinstall windows, I could not get my PC to open any of the windows 11 download files, so this was out of the question for me but if you can get it to work, then it should fix the issue.