@juliann please can you post the M122 once the issue occurs. I see driver 2 is one of the Z axis motors so its unlikely to be moving wiring causing the issue but can you check that you can't recreate the issue by moving the wiring around. Also something to check would be to switch the motors in driver 1 and driver 2 at the Duet end, update your config to match, and see if the issue moves with the motor or stays with the driver.