You know what, your comment actually reminds me that this happened when I also had a bug in my configuration that was causing me to not actually use swap. I assume running out of tmpfs uses swap like anything else? I might give tmpfs another try.
We are both wrong to a degree, but you are more correct than I was.
According to the docs[0]:
tmpfs ... is able to swap unneeded pages out to swap
space, if swap was enabled for the tmpfs mount.
So `tmpfs` does not unconditionally use swap, but can use it if possible. What I was thinking about is `ramfs`, which doesn't support swap, but that is not the topic of the question to which I replied.
Swap on an SSD isn't even that slow.