how did you expect to flash miui 13 on twrp? first there is not a good working twrp for ultra and there is not a twrp miui13 stable rom...
If you want to flash stable miui13 use fastboot...
So run the script with format data
At least thats what i am thinking
If you are going from weekly MIUIv13, you are doing a downgade so format data is mandatory!
Tip for Android 12 devices: Because TWRP doesn't work with Android 12, the update needs to be flashed in Fastboot mode. Download the ZIP package, unpack it and run update script (without formatting data if you're moving from Android 11 xiaomi.eu ROM or with format data if you're flashing it first time).