My Mac crashes when it runs out of RAM
Turns out the simple solution sometimes is the proper one after all! It seems /private/var/vm/ should always exist (even if it is empty, ie on restart), so however it got deleted the answer was to just sudo mkdir /private/var/vm/. Seemingly non-robust coding on Apple's part, but at least it's fixed. Never mind!