For installing xiaomi.eu based rom's from twrp take this steps:
-Boot twrp on the slot you have a miui install
-Go to mount, and check system, system_ext, product, vendor and odm.
-Go to advanced, and select Unmap Super devices, and after that, on the same menu, check merge snapshots
-Flash...