I had the same problem. Running a packaged game would totally freeze the computer (windows 7 - 64bit) after 20 to 30 minutes of play. Task Manager on a second monitor showed everything normal right up to the freeze.
Yesterday I updated my video drivers. My vid card is Nvidia 1050 Ti. The drivers I downloaded and installed (express install only) Version 419.35 from the NVidia site.
Downloaded File - 419.35-desktop-win8-win7-64bit-international-whql-rp.exe
I didn’t reboot because it did not ask me to. I ran the packaged game and got a message box up saying - ‘There is a problem with your video drivers - check your system is capable and that you have the latest video drivers’ - or something like that. I thought ‘Dammit!’. But, the game ran anyway and, when I came to start the game a second time there was no such message.
Anyway, I then proceeded to test play the game and it did 3 hours last night - interestingly, before the video update when I was running the game on my machine it was using just over 3Gb of memory and after the video update it now uses 2.3Gb of memory. So, something has changed. I am testing again today but last night everything was tickety boo.
It seems to me that the whole machine freezing is indicative of a general problem rather than a specific game problem (even though running the game triggers it). Windows allocates resources to running processes and there really should not be any way a normal executable program should freeze the machine up. So, when trying to solve this problem look for something fundamental. The suggestions and solutions above all seem to share this characteristic - i.e. ram, bios, video drivers (even the bizarre keyboard one) - what they have in common is that all programs share these elements.
Good Luck with your voodoo everyone.