It's maybe link to the "send windows flying automagically when hovering" feature. I had it on and off and it was on when freezing. The mouse does not freeze, only the compositing mode. I do have dash-to-dock (v69?) installed for gnome-shell 3.38.6.