Make sure your motherboards BIOS is up to date
Make sure you have the latest AM4 chipset drivers installed from AMD.com
Run the program called DDU and remove all past/present GPU drivers .. reboot .. and THEN install latest GPU drivers from AMD.com
Make sure you Windows install is up to date
Sometimes any cable extenders INSIDE the case including PCIe riser cables .. can be cause of odd issues
Inadequate power supply can cause issues too