I don't think there's a single thing I'm doing when it happens, but I've often noticed it happening right when I accidentally zoom the TextEdit window by pinching (something I never mean to do in TextEdit and which is mostly annoying, btw). But it also happens when I'm doing nothing but typing on a keyboard (also external). I also do tend to use an external display connected by HDMI, which I suspect even more.
Running 11.2.3 on MacBook Pro 13-inch 2020. I saved a recent crash report, if it helps.
Any ideas? Thank you in advance.