Switch to a instead of USB 3.0/3.1, as the flashing tool often struggles with newer high-speed ports.
A common scenario for this error is updating firmware for LG UltraGear or UltraWide monitors . lg up error 0x5319