PC shuts down when using MSFS

My problem is that I can’t se any pattern. First it shut down when I started the engine on FBW. Next time when I started the taxi. And then I changed airport and was able to take off. It flew for 3 hours and then on descent around 7000ft it shut down again. Temperature was normal. I have ryzen 7 3800x and it was around 60 to 70c. And my card is adm 5800xt and was around 110c. Normal for this card. I am running memtest now to see if ram is working 100%