ESP32 Thing : Cannot connect reliably to download code.

Is there another program using COM5?

A serial terminal emulator or possibly some GPS software?

If so, close those programs first, then try programming your ESP32.