when im playing games like half life and roblox after some minutes my pc just freezes (but the coolers are still on) and then i have to turn it off by holding the on/off button and turn it on again and i see that my driver just got disabled. to get it back i have to go to the device manager and enable, disable and reenable it again. i have tried downgrading/upgrading my bios, overclocking/underclocking my apu and ram, downgrading/upgrading my driver.
specs:
ryzen 3 3200g with integrated graphics
corsair 2400mhz 8gb cl16 dd4 ram
colorful battle-ax b450m-hd v14 motherboard
240gb ssd
450w psu