If the graphical interface keeps failing, you can run the flash script directly from the ROM folder. Open your extracted ROM folder. flash_all.bat Right-click it and Run as Administrator
If timeout occurs during system.img or vendor.img : Mi Flash Tool Timeout Error