ESP32C3 SD card not being found, but works with NRF52840

It works fine regardless of whether there is external pull-up resistors or not.
When #define SDCARD_SS_PIN 4,which pin on the XIAO is the chip select pin connected to? Is it the D2(GPIO4) pin?