Question How do I fix this rebooting issue

Mar 21, 2023
I have just recently upgraded form a ryzen 5 3400g to a ryzen 9 5900x and when I go into a game it is fine for a couple of minutes and then it just randomly reboots out of nowhere. When I am on the Home Screen it is fine and I can leave it on the Home Screen for a long time without it rebooting. Somebody please help.