Micro SD extender cable

Unless the extender is faulty, that appears to be exactly what is happening.

The Mega is a 5V logic level device and the SD card and display is 3.3V logic so the display has a logic level converter on it.

Maybe the logic level converter on the display for the SD card is sensitive to long cables ?

Check whats happening to the SPI signals on the SD card with an oscilloscope.