Again, the basics of what failed.
Your endstop wire have broken from repeated flexing every print.
Because they are no longer making good contact, now the endstop is not registered at the mainboard when triggered. So on homing, it attempts to home, never senses the switch, keeps trying and skipping steps, then finally times out on the homing sequence. That the sound you hear and the actions.
Meanwhile, your X axis stepper wiring is in the same bundle, has had the same number of flex cycles and likely has or will break very soon.
Always replace BOTH cables (4 wire endstop and 4 wire stepper motor cables) as a set to prevent problems.
If the stepper cable fails, this causes random shifts in position and grinding of the stepper (skipping steps) and can damage the stepper driver because this open circuit while in operation creates inductive kickback.