Asahi Fedora on MacBook Pro intermittent restart when plugged in with lid closed

I have twice had my MacBook Pro (running Asahi Fedora remix) with the lid closed and plugged in play the startup sound seemingly out of nowhere. When I log in, I find that all my applications have been closed and the GNOME desktop is completely empty.

Is this a documented issue? Are there any workarounds? I am on the latest release of Asahi Fedora, and my system details are below.

2021 16" MacBook Pro
M1 Max processor
32GB memory
1TB drive (500GB MacOS, 500GB Asahi Fedora)