How Many Uploads?

How many times can I flash my MCU?
I’m using ESP32.

I saw there is a limit to how many times you can upload, but I thought it was in the thousands.

Many ESP32 chips do not have built-in flash and as such rely on an external chip. The write/erase cycle endurance is what matters here. For reference, a Gigagdevice GD25Q32 found on a standard ESP32 module, which sports a typical

Minimum 100,000 Program/Erase Cycles

So the raw flash chip endures writes/erases in the typically hundreds of thousands.

Thank you very much at least 20 characters

Thing is, the WeMos D1 R32 boards I’ve been using have been very reliable until now. I’m getting upload failures. Stuff like no serial:
Running stub…
Stub running…
Changing baud rate to 460800
Changed.
WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs.
Configuring flash size…
Flash will be erased from 0x00001000 to 0x00005fff…
Flash will be erased from 0x00008000 to 0x00008fff…
Flash will be erased from 0x0000e000 to 0x0000ffff…
Flash will be erased from 0x00010000 to 0x000cffff…
Compressed 17088 bytes to 11848…

A fatal error occurred: Packet content transfer stopped (received 8 bytes)
*** [upload] Error 2