ESP32-CAM with OV5640 overheating? purple haze over image and very warm board/camera

That is a very bad sign, and the replacement is clearly a bad idea. Don't count on the ESP32 board working reliably after this experiment.