I had a similar issue and it was driving me nuts. Wanted to open a thread about this, found yours.
In my case I was logged out randomly sometimes moving a weindow “too fast” or opening too many tabs on Chrome, or start compiling a heavy nodejs program in Visual Studio Code… so I was thinking it was a memory issue or so…
In my case I got it solved at login screen, clicking the “settings” icon (bottom right) and choose Gnome on Xorg.
This looks like the kernel wasn’t affected, so you should note the time you got logged out and use journalctl to see if there are “interesting” entries around the time of the crash.
I’m having the exact same issue, found your thread while Googling around.
Fedora Linux 41
Kernel: 6.11.8-300.fc41.x86_64
AMD Ryzen 5 4600U
Found the following related in the journal, makes sense why switching to Xorg should fix it (but is not really a fix in my opinion)
dec 02 14:13:17 my-laptop gnome-shell[49178]: (EE) failed to read Wayland events: Broken pipe
dec 02 14:13:17 my-laptop unknown[47619]: Error reading events from display: Broken pipe
dec 02 14:13:17 my-laptop kgx[53564]: Lost connection to Wayland compositor.
dec 02 14:13:17 my-laptop xdg-desktop-por[48096]: Lost connection to Wayland compositor.
dec 02 14:13:17 my-laptop unknown[47586]: Error reading events from display: Broken pipe
dec 02 14:13:17 my-laptop unknown[47560]: Error reading events from display: Broken pipe
dec 02 14:13:17 my-laptop gnome-software[47695]: Lost connection to Wayland compositor.
dec 02 14:13:17 my-laptop gsd-wacom[47647]: Error reading events from display: Broken pipe
dec 02 14:13:17 my-laptop xdg-desktop-por[48122]: Error reading events from display: Broken pipe
dec 02 14:13:17 my-laptop unknown[47572]: Error reading events from display: Broken pipe
dec 02 14:13:17 my-laptop gsd-media-keys[47574]: Error reading events from display: Broken pipe
dec 02 14:13:17 my-laptop systemd[47221]: org.gnome.SettingsDaemon.Power.service: Main process exited, code=exited, status=1/FAILURE
dec 02 14:13:17 my-laptop systemd[47221]: org.gnome.SettingsDaemon.Color.service: Main process exited, code=exited, status=1/FAILURE
dec 02 14:13:17 my-laptop systemd[47221]: org.gnome.SettingsDaemon.Keyboard.service: Main process exited, code=exited, status=1/FAILURE
dec 02 14:13:17 my-laptop systemd[47221]: org.gnome.SettingsDaemon.MediaKeys.service: Main process exited, code=exited, status=1/FAILURE