Here’s another user with the same issue:
https://forums.developer.nvidia.com/t/prime-usage-of-external-hdmi-monitor-results-in-xid-errors-with-dxvk-vkd3d/245370?u=generix
The common grounds so far are (X)wayland + amd igpu + nvidia offload. Though impossible to be sure to tell from only two datapoints.
I guess this bug was introduced with the change in
2022-11-28 version 525.60.11
* Improved the performance of PRIME render-offloaded applications.
but wasn’t fixed with
======== Release 530 Entries ========
* Fixed a bug that prevented PRIME render offload from working for
Wayland applications when running on a system with an AMD iGPU.
Though that likely addressed a different bug.
At least the other person found a workaround by using gamescope.