Download Xiaomi stock firmware file from link below and use the flashing guide at the end of this post to flash the firmware on your device.
If your device stock ROM is not on the list below, post in comments section at the bottom of this thread and it will be added ASAP.
How to flash Xiaomi Stock ROM