Hi @ingyou
welcome to the arduino-forum:
The solution to this problem is to use a different stepper-library.
This library is called MobaTools and can be installed with the Arduino-IDE-library-manager.
The MobaTools use a different approach to create the step-pulses:
The step-pulses are created by a timer-interrupt. This means the step-pulses are created in the backround just-in-time for a smooth running stepper-motor.
If you have installed the library a PDF-documentation in english and in german is also stored in the MobaTools-subfolder. Ask here in the forum. Post your code but
If you have any problems in applying / modifying one of the example codes
important !
post your code as a code-section like described here
best regards Stefan