Since yesterday, every time I have played rainbow I will be in a game, and as soon as the second round starts my computer just restarts. My computer lights stay on and so do the fans my monitor goes black and then turns back on at my login screen for my pc. I have searched all over google and forums for answers but can't seem to find any. This is the only game that causes my pc to do this and I play other games like csgo, Valorant, and destiny 2 where i have had no problems. My friend also has the same pc as me and this does not happen to him. If this is happening to anyone else or if anyone knows how to fix this please let me know.
My cpu is a ryzen 5 5600x and my gpu is a radeon rx 5600xt
My cpu is a ryzen 5 5600x and my gpu is a radeon rx 5600xt