Mailspring freezes and crashes after receiving a new mail

I’m experiencing this for a few days and I can’t say if it’s a Mailspring bug or something else. I noticed that Mailsping started freezing and crashing after receiving new mail. It shows a notification in a desktop environment but immediately freezes. After few seconds it crashed with this output:

Failed to get crash dump id.
Report Id: {"success":true}
Failed to get crash dump id.
Report Id: {"success":true}
[1]    9158 illegal hardware instruction  mailspring

I’m using Gentoo Linux, kernel version 5.10.52, Gnome 40.2.0