If you put /tmp on tmpfs, then you need to have unlimited swap by swapping to a dynamically resized swapfile as well (which might need kernel changes, I think?).
Otherwise you can't create huge files in /tmp, which means that the system is simply broken.