There seems to be some issue with ostree 2023.4-1 which causes the installations of and updates to flatpak apps to fail.
The issue is fixed in 23.4.2 which is in extra-testing at the moment.
If you are having this issue, you could just wait for it to be released into the stable repo or upgrade to the version in testing.
For more: