Randomly crashes with Error 71 (Protocol error) when opening composer window
I have noticed that Evolution will often (but not always) crash when opening a composer window, e.g., when hitting the Reply button. The error message is as follows:
$ LANG=C.UTF-8 evolution
Gdk-Message: 11:14:52.199: Error 71 (Protocol error) dispatching to Wayland display.
Evolution is the only application I have seen crash in this way.
I am running Fedora 37 with Evolution 3.46.2-1, Wayland 1.21.0-1 and Sway 1.7-4 as the Wayland compositor. The issue also occurred when I was running Fedora 36. The hardware is a Dell XPS 13 9310 2-in-1 laptop with an Intel Iris Xe GPU.
I have looked through https://wiki.gnome.org/Apps/Evolution/Debugging but didn't find any debugging facility that seemed relevant, so please let me know how to generate better debugging info if you need it.