I will post how to fix it then I guess.
Steps:
1. Install gamemaker 8.1
2. Press "windows key" + R to open "Run" window
(or open Run window normally.)
3. put %appdata%\gamemaker and press enter, you should see this
4. make a copy of "Rundata" file and put it in a seperate folder and keep a backup.
5. when the error happens, copy the "rundata" file you have backed up in new folder.
and paste it into this main folder, overwriting the old one.
I hope this helps. it is a little weird to do every time the error happens at first. but you get used to it and it only takes 5 seconds if you are fast ;3