Hi,
if you can't unlock the bootloader through Xiaomi account, you will most likely have to deep flash.
Even though I got the code from Xiaomi, I couldn't unlock the bootloader because I didn't register my phone on xiaomi account and MiUnlock was giving a message "couldn't verify device" or...