Using a similar configuration (ESP32-WROOM-32, PlatformIO, SD.h, SPI.h), I had the same issue initialising a Micro SD SPI Storage Board when it was powered by 3.3V. However, the SD SPI board initialised correctly when using 5V.
This was despite the claim that the SD board operated at 3.3V and 5V.