Subject: Bug#1023024: #1023024 Session crashes when switching back to first display from a second one connected with HDMI when Wayland is used with KDE
I’m now closing this bug.
The wayland progress has made huge strides in recent years so I’m sure your issue will be fixed in the upcoming Debian 13 Trixie shipping Plasma 6.