Crashing on sound output change (my guess)

When my laptop is closed and Fedora KDE is in sleep mode if one unplugs a usb (at least what I have) headphones, KDE just crashes. Everything that was opened before closing the lid works just fine. You can run terminal commands, but none of KDE gui elements work (switching apps using a bar, super key menu e.t.c.) I’ve tried reinstalling Fedora KDE, but this didn’t help.