My computer is having a problem running knight online i play for about 20min to 30min my computer restart auto

i have tryed reformating it 2 time but still does the same thing

when i play another game such as warcraft (dota) my computer run just find it doesn't auto restart

does any1 have this same problem?

if any1 have a solution to fixing this problem pls help