My brief time owning a 5700XT the one thing that i did realise is MSI After Burner is a cause of a lot of problems, if you're using AMD drivers for GPU custom settings MSI After Burner has a habit of trying to override it or just clashing, even glitching with it
I had a lot of heat issues with my 5700XT so i did a lot of power tweaking to it, i experienced exactly the same problems people who like to use to perpetuate the more than a decade long (AMD's Drivers are bad) none sense, those were due to my pushing the undervolts too hard and MSI After Burner interfearence, unfortunatly i had to stop using MSI After Burner but once i did the settings i set in AMD's drivers were ROCK SOLID.
Now for the record the 5700XT was a cracking card and i loved AMD's drivers, the problem with it was ASRock, ASRock turned a cracking GPU in to the junkiest pile poo imaginable and i couldn't live with it.
It was an ASRock 5700XT Challenger OC.