No common denominator for me.
None of the workarounds offered have made any difference to my simple setup. Fresh install, one monitor, no sleep, terminal always open with never ending stuff running, and so on.
Without any change of configuration my machine started to beachball, freeze, and reboot several times a day after doing it once a day for several weeks.
WindowServer is the culprit. The logs say so. End of the story.
There may be several bugs there, and several aggravating triggers. Granted.
It's human to try and get rid of the triggers to be able to get anything done, but at some point it's pure masochism to try and fix the unfixable. Or a vocation may be? The path to sanity is a full reinstall of an older operating system that is known to work just fine. I don't care about the bells and whistles. I just want Mail, Safari, Xcode, the occasional Pages and Keynote, and more than that, I want long winded processes that make the CPUs get red-white and the fan blow like **** to run uninterrupted for several days or weeks until completion. Right now Catalina is a no-no for that kind of job, and yes it smells like Windows until 2003. I simply refused to work with Windows since, and my last taste of it last week made me recoil in horror.
At least we have known OSX versions that are rock solid like Windows has never been.
Use your Time Machine backups and go back in time!
First it will you get up and running again, as if you were waking up from a bad dream.
Second, Apple will get a set back in their sales forecasts, because new OS mean new machines out of the door while old OSes mean longer ownership.