My SD/MMC memory cards were very error-prone until I realized that the memory card was sensitive to the SPI traffic even when CS line was not active. Especially so on two conditions:
After adding 'wait for memcard to become not busy' after writing and before LCD activity the problem went away.
It looks like the problem is solved for now. While I am not sure if I have hit the right nail, perhaps it might be useful for somebody.