must be overheating if it constantly restarts by itself, check the temps on your gfx card, cpu and overall system temp. Definitely having some type of cooling problems. Air cooled or water cooled?
probably be a good idea to post the specs of your new built pc