I don't know if usefull but maybe it's.
Previously my mi 11 had problems with Xiaomi Cloud and Gmail (didn't let me download attachments). I tried permission, clear cache, factory reset and reinstall 22.7.21 and nothing worked.
So, I went back to 12.5, reinstall TWRP (A11 version) and then...