NEMA 17 stepper motor has problems with homing

I am facing an issue with my NEMA 17 stepper motors that have a step angle of 0.9° per step. I am using DRV8825 drivers with a microstepping setting of 1/16. During the homing process of all axes, the X-axis gets stuck, and the motor loses steps as it tends to move too quickly. However, when I perform homing for the X-axis only, this problem does not occur. I have checked the current settings and ensured that there are no mechanical obstructions. Can anyone help me identify the possible causes of this issue and suggest potential solutions?

@jack25 Welcome to the group, Jack.

I believe that if anyone is going to be able to help, we need much more information about your machine.
Clearly, it is not a Sienci model. What is it?
What type of controller are you using?
Is this a grbl machine?
What code sender are you using?
What steps have you taken already to remedy the issue?
Is this a new problem?

I realize that these are a lot of questions, but without adequate information, any advice you receive, while well-intentioned, will be shooting in the dark.