Looking at the original error, it seems to be a local error (on your computer, not a network error).
Actually, today's Fastly outage which affected flathub too has shown that it's a network error leading to ostree corruption. I had to do flatpak repair --user
.
Do you know if there are any flatpak issues open for this?