Yesterday (27th August 2022), I've upgraded my Ubuntu MATE 20.04.5 LTS ("Focal Fossa") to Ubuntu Mate 22.04.1 LTS ("Jammy Jellyfish") in my laptop. After the login, in maybe the third reboot after the upgrade, I got a "marco" crash with that same error message that you got ("Title: marco crashed with signal 5 in _XReadEvents()").
I've posted, also yesterday, a more detailed message in the older (started on March 2021, by @jaybo) "Internal error "/usr/bin/marco"" topic here in the "Ubuntu MATE Community" discussion forums. Direct link to my post in that topic: