Why Am i getting an error when my computer idles or i lock it

I experienced the same issue (see Frequent 'Oh no! Something has gone wrong' error after upgrading to Zorin OS 18 Pro). The problem has not occurred since I switched to Wayland. Most apps seem to work under Wayland, the notable exception is AnyDesk.

GW