you can run Windows Memory Diagnostic if you're worried that your ram is going.

but the error only happens when you close the game?