Random freezes
Hello there. I built a pc that I upgraded later, and since... I would say, a year, I get freezes at random times, that can occur during gaming or just being on my desktop, so at anytime from what I saw.
Sometimes, it happens multiple times an hour, and sometimes once a day, so at random times, as I said.
I don't remember exactly when it started to do this, but I think it's when I changed my gpu for the first time, going from a 1050 ti to an rx 580 (so from nvidia to amd), so I thought it was because of a driver issue, so I uninstalled all my gpu drivers with DDU and installed radeon drivers from amd.com, but that didn't fix the problem.
Next, I thought it was because of my PSU, so I changed my 500W Be Quiet system power 8 to a 650W Corsair VS650, and obviously it didn't work either.
Then, I tried using my pc on integrated graphics, removing the gpu. I think I tried this for around a week, and I don't remember having any freeze in that time. So, I said "meh, the gpu has a problem", I changed my RX 580 and bought an RX 5700. Problem still not fixed.
I don't know what to do :(
Edit: forgot to mention that I have 16 GB DDR4 RAM that I tested with memtest to make sure it isn't the cause of the problem, latest version of windows 10, my CPU is the i5-8400 and my Motherboard is an Asus Prime Z370-P with a bios that is up to date.