We often overlook extremely simple things, and they will end up being the root cause of the issue. A faulty jumper pin is one such issue.
Whenever there is a motor issue, there can be 4 reasons which are faulty motor, a faulty driver, a faulty MKS, or connectivity issues. But even a faulty jumper can cause this.

Jumper pin position
Jumpers are used to set the stepping values in MKS. If the jumper pin is faulty, it will not set the stepping units, and the machine will give issues. So it is advisable to swap the jumpers and check if you are not able to root cause the issue.

Jumper pin