AccelStepper with Nema34 skips with stepper.run

Because "whole sketch" is standard. Do you bring just your car air filter to your mechanic when your car throws an error code?

Given you can not identify the problem or problems, what makes you belive you selected the random piece of code with "the problem or problems?"