2048 byte stack was not sufficient when some error was logged by SD card driver, leading to stack overflows.