I read some stuff online about cryptocurrency mining and wanted to give it a go, so I downloaded a miner which I know to be trustworthy called XMR-Stak. I downloaded it from the official GitHub page, no shady websites or anything. Chrome flagged up a warning, but from what I've read it does that for pretty much all crypto miners so I ignored it. I copied the miner into my documents folder, set up the pool config file and ran it. Windows Defender immediately closed the program and said my system was at risk and wanted to delete the program. I allowed Windows Defender to do whatever it wanted with the file but it just left it there. I can't run the program because Windows Defender blocks it and I can't delete it because it is "corrupt and unreadable".
Here's the kicker, Windows Defender completely blocked all write attempts to my entire documents directory. I can't delete, rename or edit ANY of my documents (which are mostly word files). I can read all the files and I can copy them out then edit them, but I can't save anything to the directory. I just get a popup saying the files are corrupt and unreadable, error: 0x80070570. I can't even make a new text document or a new folder, I just get the same popup.
All my data is safe because I can just copy it out of the directory or read it perfectly fine there (So it clearly isn't "corrupt or unreadable") but this is an incredible inconvenience because it has rendered the entire directory and everything in it completely useless. I have programs on my system that store their config files there, so they all crash when doing anything because they need full access to their files.
I have admin permissions on the system but I can't move or do anything to the files because Windows won't let me touch them. I have restarted multiple times, the hard drive is new and not failing. Please, if anyone knows of a solution to this problem that will leave all the files intact I will be incredibly grateful. I don't care if it deletes the crypto miner, I just want write access to my files again.
TL;DR: I ran a program in my documents folder, Windows Defender blocked the program and blocked access to all my files at the same time. I can read them and copy them, I just can't write/rename/delete/move/edit anything in the directory.