Shapeoko xxl goes off path

Are you cutting a slot just as narrow as the tool?

If the machine is mechanically sound. Per the machine operating checklist: Machine operating checklist , the basic points of adjustment for a machine are:

Ensure that all screws are in place and secure, esp. on the linear rails on a Pro.

And check the toolpaths. Where possible avoid slotting and add geometry and cut as a pocket

and/or

and consider leaving a roughing clearance and taking a finishing pass.