Try this:
Go to TWRP,WIPE, Advanced Wipe, WIPE ALL except "USB-OTG", SWIPE TO FLASH
Go back to menu, INSTALL, and flash the latest rom XIAOMI.EU.
After that, say me if the "error" is dead.
(Basically, i say make a clean install of the XIAOMI.EU rom. It's up to you)