PS: If it's about unlocking the screen, and it does happen again, it may help to switch to text mode (Ctrl+Alt+F1) login as root and run "loginctl unlock-sessions" or kill kscreenlocker_greet. Would at least be a workaround to not lose work if it helps.