ESP32C3 SD card not being found, but works with NRF52840

Hi NRav90,
This is the result of running your sketch on ESP32C3.
#define SDCARD_SS_PIN 4, so the SD card chip select pin is connected to pin D2(GPIO4) of XIAO ESP32C3.

18:24:27.355 -> Assuming the SD is the only SPI device.
18:24:27.355 -> Edit DISABLE_CS_PIN to disable an SPI device.
18:24:27.355 -> 
18:24:27.355 -> Assuming the SD chip select pin is: 4
18:24:27.355 -> Edit SD_CS_PIN to change the SD chip select pin.
18:24:27.355 -> 
18:24:27.355 -> type any character to start
18:24:35.074 -> init time: 3 ms
18:24:35.074 -> 
18:24:35.074 -> Card type: SDHC
18:24:35.074 -> sdSpecVer: 6.00
18:24:35.074 -> HighSpeedMode: true
18:24:35.074 -> 
18:24:35.074 -> Manufacturer ID: 0X2
18:24:35.074 -> OEM ID: TM
18:24:35.074 -> Product: SA32G
18:24:35.074 -> Revision: 7.0
18:24:35.074 -> Serial number: 0X2B427EED
18:24:35.074 -> Manufacturing date: 2/2023
18:24:35.074 -> 
18:24:35.074 -> cardSize: 30979.13 MB (MB = 1,000,000 bytes)
18:24:35.074 -> flashEraseSize: 128 blocks
18:24:35.074 -> eraseSingleBlock: true
18:24:35.074 -> dataAfterErase: zeros
18:24:35.074 -> 
18:24:35.074 -> OCR: 0XC0FF8000
18:24:35.074 -> 
18:24:35.074 -> SD Partition Table
18:24:35.074 -> part,boot,bgnCHS[3],type,endCHS[3],start,length
18:24:35.074 -> 1,0X0,0X82,0X3,0X0,0XC,0XFE,0XFF,0XFF,8192,60497920
18:24:35.074 -> 2,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
18:24:35.074 -> 3,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
18:24:35.074 -> 4,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
18:24:35.074 -> 
18:24:35.074 -> Scanning FAT, please wait.
18:24:37.372 -> 
18:24:37.372 -> Volume is FAT32
18:24:37.372 -> sectorsPerCluster: 64
18:24:37.372 -> fatStartSector:    9808
18:24:37.372 -> dataStartSector:   24576
18:24:37.372 -> clusterCount:      945024
18:24:37.372 -> freeClusterCount:  941674
18:24:37.404 -> 
18:24:37.404 -> type any character to start