It might be easier and less frustrating just to fix the X axis?
It might be just a loose wire or a bad connection. Push plugs in, tighten wires and give them a little tug.
You might come across several that are suspicious....Try plugging the x axis stepper into another stepper output and see if the fault changes.
Inspect stepper cable terminations as well. Wires break.....
You might be able to narrow down where the fault is.