LilyGO T-Camera S3

To debug I would suggest to use the ESP32 Exeception decoder. So you should get a trace where the error occurs.

monitor_filters = esp32_exception_decoder

You could also use the ESP32-S3 built-in JTAG debugger - See How to use JTAG built-in debugger of the ESP32-S3 in PLATFORMIO