I wasn’t really aware of it, but it seems that SdFat.h is being used.
Using library SdFat - Adafruit Fork at version 2.2.54 in folder: C:\Users\msfujino\Documents\Arduino\libraries\SdFat_-_Adafruit_Fork
After checking the operation of C3 in detail, the loop runs only once and then hangs while waiting for input from the keyboard.
Why not try the example sketch specifically for ESP32C3?