I’ve been experiencing this issue for about two years now. It first happened on Windows 10 out of nowhere. I had been using that machine for more than a year already. Since then, I upgraded to Windows 11 with a clean install, changed the motherboard, CPU, GPU, and RAM, and it still happens now and again. I think it might be an issue with the AMD driver or something. The issue seems to happen the most when switching between apps using alt tab or just clicking on them on the nav bar.
Games don’t seem to have this problem—there’s no part of the screen freezing. It’s every other app/software that experiences this issue. For example, Google Chrome, Firefox, Edge, Discord, VSCode, GIMP, AMD Adrenalin, Steam—the list goes on. However, games like Battlefield, COD, Minecraft, or others all run perfectly fine with no freezes or issues.
I have no idea what else to do about this.