Macbook 2011 crashes on lid close / power button - F37

I read some things about the swap and zram, but did not really feel up to change any configs as I did not want to tinker with the wrong solution. How do I configure proper swap space?

Would this be the correct approach? https://discussion.fedoraproject.org/t/how-to-modify-swap-space-on-fedora-36-btrfs/77091