If the graphical Mi Flash Tool keeps timing out, bypass it entirely using the command line. This gives you better error messages and more control.
Ensure bootloader is unlocked (official Xiaomi unlock). The timeout error will also occur on locked devices, but that’s expected behavior, not a bug. mi flash tool timeout error fixed