I had the same problem as you, not only on games, also on desktop while listening to music or whatever. Your cpu is probably getting overheated and that causes the pc to reboot. What i did was clean the cpu and the cpu cooler making sure to take most of the dust from it (from the cooler), and...