I have seen issues like this on computers using cards that were cold when inserted but heated up over time, after insertion, causing disconnects. The kind of intermittent issues that would cause any sane person to think they were cursed. If shorter prints work fine and longer ones do not, both from the same card, it is possibly a heat over time issue.
Other things that can cause this type of behavior is dirty power. Lights flickering, same circuit as the kitchen microwave, etc. drops the usb type connection almost immediately.