Try granting Discord the ‘Background’ permission in Flatseal. (KDE has no native UI for this; they implemented the wrong half of Flatseal.)
There seem to be some issues with background app detection, especially on KDE.
The next release of xdg-desktop-portal will at least log visibly when it kills an app.