Just make a swap file. It's simple.

https://linuxize.com/post/create-a-linux-swap-file/