To narrow down the issue you can try:
- installing the flatpak version
- switching windowing systems (wayland and xorg/x11)
- installing an older package from the archive
You could also try checking what strace says. (strace discord)
However the system calls are hard to understand