Fedora 41 randomly kills all processes and redirects to login screen, without any error popup on screen

Does this fix your issue? You can also check the entire thread for details.