I am trying to play games but randomly gpu light turns off and fans go full speed and display shuts off

I will be playing games and randomly my computer will stop showing display like I mentioned fans will go full speed and I will have to switch the power supply off for it to be powered on again and it is weird because I will still be able to hear audio and in the reliability history I get an error code named livekernalevent 141 which is related to a GPU error and I would like to file for warranty on my 2070 super founders edition card.