Maybe your controller is defective, have a look here as workaround for figuring out:
Try to reroot the toolheadport with M1029, have a look here:
https://snapmaker.github.io/Documentation/gcode/M1029
Unfortunately it seems you will need a new controller..