This is called "lost steps". It happens when a move is commanded that a stepper is unable to execute. Identify the axis that is faulting, go into its settings under Motor Tuning, reduce the acceleration by about half, "save axis" then try the program again and see if it got better. Other causes can include mechanical issues, too high a speed commanded, not enough voltage, etc. but reducing acceleration often works.