Well it's not like that .. if your data is encrypted now , installation will fail ..Ok I'm gonna update and see
Sent from my Redmi Note 7 latest xiaomi.eu beta
The only way to flash if data is encrypted is by an OTG usb stick or in your case you can flash by using an external micro sd card ..
That's why i told you to check at twrp ..