Steps to reproduce: 1. Start a Plasma wayland session with plugged second monitor via HDMI (it doesn't matter which one is done first). 2. Lock your screen. 3. Unplug the HDMI cable. 4. Observe how the whole session crashes immediately and get send back to login screen (SDDM in my case). Happens every time on my machine. Feel free to ping me what information I could provide.
I'm able to reproduce the issue. Arch Linux KDE Plasma 5.13.3 KDE Frameworks: 5.48.0 Qt: 5.11.1 Wayland: 1.15.0-1 xf86-video-intel 1:2.99.917+831+ge7bfc906-1
Decided to try reproducing this again now with plasma 5.16 and I can't anymore on the very same machine this has been reported. Plasma 5.16.2 KDE Frameworks 5.59.0 Qt: 5.13.0 Kernel 5.1.15 No idea if it has been fixed (un)intentionally at some point or I've changed some subtle setting which stopped causing this. In any case since I'm no longer able to provide help with debugging it's better to close it.