ESP32 with ov2640 does not work in RGB565 mode

Which IDE and ESP32 Core version are you using ?

It seems that Expressif do have a problem with their latest 'revision' of their core;

https://github.com/espressif/arduino-esp32/issues/11674