Get a better power supply.
For items like the ESP32-CAM, I solder 2 super caps in series across the 5V line.