In my Xiaomi 12 pro, I had the same problem with TWRP.
After gaining help, I understood that I should use the boot and not recovery version of TWRP.
Download the file [boot] 3.7.1_12-mi12pro_v9.0_a15-zeus-skkk_1998d660.zip, unzip it, then run this command via terminal:
After installation, your...