Games lag and freeze in 15-20 minute intervals.

I have been searching all of the internet for this specific problem but I cant find any help.

Random day in august I updated my AMD drivers since I had not done so in a while.
Then my games kept crashing after 20 minutes of playing and and window would pop up saying "driver timeout" or something like that.

I saw some post on some post on some website which was similar to my problem saying to change some settings in the registry, so I did that and now it does not crash anymore.


But every 15-20 minutes it lags for 4-5 seconds and after this it is followed by the game freezing for 3 seconds.

I have tried deleting my drivers and installing them again.
Playing with only one stick of ram since I recently added one more.
Installing old drivers.

I have a rx 570 and an i5 9400f.
 
Back