I had this exact same issue and I managed to mostly solve it. I'll say how I did it, hopefully it helps someone.
I "solved" this issue by managing to save the files on my phone to my computer, and then wiping the phone. (Note: You still need to know your Xiaomi Account's password)
When I entered...