Safest method:
Download a fastboot version of a Developer MIUI (China if you wanna flash Xiaomi.EU Rom), flash it with MiFlash (clear all option enabled) and the phone in Fastboot mode, then after first boot enable developer options, reboot the phone in Fastboot mode then via ADB shell flash...