Unfortunately I am unable to run GDB, as it seems that GDB doesn't run on aarch64.
I tried to debug using LLDB, but since I have no experience with these things I was unable to do so. I can try to find some time to learn the process next week, but it might take a while, as I have never done any debugging before. Maybe someone with more experience has access to an Apple silicon machine and can replicate the bug?
ps. Maybe I should explain, that the three-finger tap is a macOS feature that can search for a dictionary definition, web search etc. on a highlighted word as well as display info about files in the file browser etc. I'm just explaining this as it is a os-specific utility that some people might not be aware of. I have no idea how it works "under the hood".