Bad cables to too high debug frequency? See How do I upload arduino code to esp32 using ESP-Prog - #16 by maxgerhardt