I got some artifacts and my pc froze
Few days ago i was playing rainbow six siege and after 2 hours green and purple squares(artifacts) appeared on my pc and everything froze and sound was loud and glitchy. I restared my pc and thought my gpu can't handle r6 siege and i stopped playing it. And it happened again when i was watching youtube for few hours but no artifacts like previously maybe because i installed new drivers. I thought it was temperatures but they are fine 52c. Now i tried reinstalling older gpu drivers and i downloaded version 401. and when i was installing it my pc just rebooted i didn't know what is it and when i opened driver installer again it tried installing and said it couldn't install those drivers. Now i somehow have drivers version 388. from 2017. I'm going to use my pc with those drivers and see if i get this problem again. Backstory i bought new parts for my pc(CPU, Motherboard, RAM, PSU) and my pc was restarting for no reason and i found out it was my resart button, it was broken and i fixed it. Then this problem happened. This problem started happening to me 2 years ago but rarely(twice a year) only when i play demanding games. Can you please help me what can i do if older drivers don't work.
Ryzen 3 1200
Nvidia GT 740 1gb GDDR5
Thermaltake Smart Rgb 500w
I don't think it's something else then GPU.
PS. My gpu is 4 years old so that could be a problem.