Just download the latest stable here, format data in twrp and flash again.
Should be all good.
If not, download a fastboot rom and start from scratch, using Miflash tool or just flash through fastboot.
If you use MiFlash remember to use clear all option only, without relocking the bootloader...