The workaround to this issue is to disable dynamic power management by setting amdgpu.dpm=0 in front of GRUB_CMDLINE_LINUX_DEFAULT variale in the grub config (/etc/default/grub).
Found the solution here: https://www.reddit.com/r/archlinux/comments/pelxaw/amdgpu_driver_issue/hbfcxs1/?context=3
Now amdgpu driver works normally!
Even apps don’t crash now on being run with DRI_PRIME=1!
This is not an appropriate solution