Flatpak doesn't work at all anymore (1.12.7)

EDIT:
OS - Linux Mint 21.2 Cinnamon

Every time i try to use flatpak it gives me the same error:

**
flatpak:ERROR:common/flatpak-variant-impl-private.h:2716:var_deploy_data_get_metadata: assertion failed: (end <= v.size)
Bail out! flatpak:ERROR:common/flatpak-variant-impl-private.h:2716:var_deploy_data_get_metadata: assertion failed: (end <= v.size)
Aborted (core dumped)

I’ve tried updating, running flatpak repair and reinstalling. I can’t find any solutions online.
It started happening about a month ago but I don’t know what caused it.

You should update to at least 1.12.9 due to recent security patches. Maybe that would even fix this problem.

Better would be 1.14.x