I’m pretty sure the initial problem is the same problem with Wayland and X11. I think the fix I suggested there should help.
However, the No such metadata object
issue is different. Please run sudo flatpak repair
from a terminal. Hopefully that fixes that problem.