Black tearing on screenshare output in electron apps like Discord, on Gnome Wayland [55.58.02]

Noticed these weird black tearing lines in the upper part of the screenshared video.
It only happens on GNOME and not KDE, so it must be a mutter + Nvidia 555 issue with Electron and DMABUF. The distro is Fedora 40.