USB Power Management. Windows puts the port to sleep. Fix: Device Manager → Universal Serial Bus Controllers → Power Management → Uncheck "Allow computer to turn off device" .
Here’s a of Mi Flash Tool Beta (the official firmware flashing utility for Xiaomi devices). Mi Flash Tool Beta