I think in the second photo it jumped twice by different amounts, as it's not gone perfectly back into line.

It could just be the Y-axis motor is very occasionally stalling. I'd try running this code to test it more thoroughly and report back.