Computer crash while render

Before this it doesnt happen, when i press render i takes 3 minutes for blender to start initializing and then when it starts to render just a few seconds after that the computer screen starts to show artifacts and then it turns black but the monitor is still on. When i restart the computer everything is normal

Note that it only crashes when using gpu, if i render using cpu it works fine