So I decided to switch from nvidia gpu to an amd gpu but now on linux whenever I play a game, whether it be immediately or after a while, my system has a hard freeze which forces me to force shutoff my system, this didn't happen before on nvidia and every distro I tried (artix, manjaro, debian, ubuntu, opensuse) but it didn't help. Can anyone help me fix this freeze. Also I have 32gb ram, amd ryzen 5900x, amd radeon 6900xt.