Try running discord with the following command, worked for me:
discord --ignore-gpu-blocklist --disable-features=UseOzonePlatform --enable-features=VaapiVideoDecoder --use-gl=desktop --enable-gpu-rasterization --enable-zero-copy
If this works, set this as the exec command in the discord.desktop file