Sculpfun s30 error:9 G-code locked out during alarm or jog state

I have 2 sculpfun Lasers and I’ve had both set up were I can use both. But recently the smaller laser, S30Pro bumps and continues to hit the wall when homing.

I get this error:
error:9

G-code locked out during alarm or jog state.

On or near line 1:
I have deleted the device and reconnected it but it stills bumps into the wall and you can hear the gears continuously rolling.

Then i get this error after:

Homing fail. Could not find limit switch within search distance. Defined as 1.5 * max_travel on search and 5 * pulloff on locate phases.

ok

Grbl 1.1h [‘$’ for help]

[MSG:‘$H’|‘$X’ to unlock]

ok

The homing process is entirely a function of the machine itself. Once Lightburn sends the home command the machine takes over. Is it moving to the proper corner? Deos it stop along one of the axes but not the other? Did a wire fall off one of the limit switches? Did one of the switches get bumped where it’s no longer being activated?

If it crashes into the switches, they are either broken or misconfigured. Here is a guide on how to check them: Limit Switches - Diode Laser Wiki

it crashes to the switches

then i get this:

ok

ALARM:9

Homing fail. Could not find limit switch within search distance. Defined as 1.5 * max_travel on search and 5 * pulloff on locate phases.

ok

Grbl 1.1h [‘$’ for help]

[MSG:‘$H’|‘$X’ to unlock]

ok

Yes, then the switches are not detected. I repeat, they are either electrically broken/disconnected or misconfigured.