Talos Principle hanging , Nvidia Bug Report included ( GTX 1050 )

The size of a swap partition also depends on if you want to use hibernate, then this should be larger than the system ram. For using a swap partition you would have to use a live cd to resize your existing partitions to have enough space for it.
If you don’t want to use hibernate, you can also use a smaller size. For a simple way to get swap, just use a 1G swap file:
https://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/