"WindowServer _CGXPackagesSetWindowConstraints: Invalid window"
or just
"_CGXPackagesSetWindowConstraints: Invalid window"
Popular program stats shows the bug here. https://github.com/exelban/stats/issues/2829
The log seems to be thrown from somewhere deep inside MacOS' windowserver. Crack open your console app and see if you also see it anywhere in the logs if you have an app that has a menu bar icon on macos.