A stable connection is vital. Use an original or certified OEM data cable plugged into a rear USB port of a desktop PC (avoid external USB hubs).
Technical users often "cross-flash" the firmware using tools like UnlockTool