Pictured, below:

None of my programs can even open a .txt document of this size, so I can't even see what's inside. I also lost my project list, and one of my .tscn files just became a file with only the number "7" in it (thankfully nothing important was inside). What did I do, and how can I prevent this from happening again?