I'm now sure that my problem is caused by the config files that my game is creating, because if I use my own, the game errors, however if I take some from another computer with the game installed, it runs fine for 1-2 hours, but then crashes and I get the same problem as before. But then I can them overwrite the config files again, and it runs fine until it crashes again.