Is there really a problem? The ESP32 is not fast enough to capture full frame video at standard rates to SD cards.
Have you counted how many frames are stored in 10 seconds and determined the actual frame rate?
What image size and compression did you specify?