After upgrading from an Rx570 to an Rx 5700 XT, my PC randomly crashes with a black screen and buzzing sound through my headphones, which then causes the PC to restart. I know that it's not an overheating problem, because problem usually only happens in the first 10 minutes of playing a game, and once it happens, it doesn't happen again for the rest of the day. This includes playing the same game that it crashes on or running stress tests like Heaven. This has made troubleshooting incredibly difficult since any "fix" I find seems to work perfectly until the next day, or few days later.
I've tried uninstalling + reinstalling drivers and any other software fixes that I can find online. I also bought a new power supply (850W Gold Seasonic) and upped my Ram + bought a new cpu. The only PC component I haven't changed since getting the new GPU is my motherboard (MSI x370 Gaming Plus).
I was able to get the GPU right before all the prices went up so I've been dreading the issue being hardware related to the GPU, since if it is, I'm going to just live with the issue rather than spend 3x the price.