There is plenty of documentation with how to hibernate a laptop in Linux. A lot of reading and you'll learn a lot of stuff, but sometimes we just want to make shit work quickly and then come back and understand what happened. So, here you go... a simple step-by-step. It may or may not work for you. If it doesn't, start digging into the documentation on the Arch wiki.
> sudo fallocate -l 16G /swapfile