While hibernating, the laptop shuts down instead

I am currently using Fedora KDE 41.
This is what free -h returns:

               total        used        free      shared  buff/cache   available
Mem:            31Gi       4,3Gi        22Gi       152Mi       5,2Gi        26Gi
Swap:           39Gi          0B        39Gi

I have no idea why this is happening, as after the last time I made any changes to partitions, I hibernated my laptop to confirm that it is working.