same happend to me.can you explain how you fixed it via commandline ? i have to wipe phone and flashed successfully Xiaomi.eu rom . i have global device.
also i flashed now Magisk 19.0 .and it works.
much thx for your work admin
Mine also eu global,but after flashing this twrp,and boot into twrp it automatically back to restart to system.