It's not just ssh. It happens even if I boot in multiuser and log in via the console, so any non-DE login is affected. Sometimes, I can't even run a simple "dnf check" command (after having a previous transaction aborted by a logout) without being logged out again. And the free command indicates that I never come close to using either all the memory or swap.