So I would like to help you more but do not know me so much with Xiaomi flashing because it is my first Device now I always had Samsung phones because you just installed the ROM again over it in the TWRP that you ALWAYS have on the phone if it is ends up in the BOOTLOOP again
why don't you just download the ROM from the phone using the updater, then it's on the phone right away and doesn't need a PC so I always do that and then install it directly with the TWRP