To my experience grounding the signal side of a driver (A in the attached picture) is wrong, that’s the cable connected to the BOB. It almost twisted my gantry because the Y axis motor turned much faster than the slaved A axis.
Then I grounded the high voltage (D), that’s the cable handling the feed to each stepper motor and then all was good.