Over the last few weeks I was getting this error occasionally and even worse - every few minutes of printing the print head would move to the edge of the print and then come back to the print and continue.
I tried many things - changing SD cards (no difference) cleaning the SD card. Swapping ribbon cables. Finally I cleaned out the SD card reader inside the printer and that fixed it instantly. While cleaning I noticed a large hair about 2cm long inside there. But I also used a wooden tooth