Esp32-cam booting issue?

Funnily enough, I’ve experienced similar issue with ssd1306 display modules. For unknown reason, they keep failing to initialize when powered for the first time, only reboot helps. My solution is kind of pragmatic: check if module is initialized one second after boot, if not then trigger reboot. Maybe similar solution can help you as well.