We need facts ...
- Post a link to the datasheet for your stepper motor
- Post a link to the datasheet for the stepper driver
- Tell us what stepper motor power supply you are using (volts and amps)
- Post your program
It sounds as if the driver is being overloaded and is shutting down to protect itself