You can try using AMD DDU tool in safe mode to clean out your drivers and reinstall. What driver version are you experiencing this on? If the problem reoccurs, you can try rolling back to a previous driver. Is there a reason you have an AMD and Nvidia card in the same system? Maybe I'm missing something here?
Ryzen 7800X3D - Radeon 7900XTX - MSI Tomahawk X670e MB - 64gb 6000mhz G-Skill Neo - Noctua NH D15 - Seasonic Focus V3 GX-1000W PSU - 4TB Samsung Gen. 5 NVMe - Fractal Torrent Case - ROG PG48UQ OLED