Clean the slider bar with a dry, lint-free cloth, then oil it with a couple drops of sewing machine oil, every couple of feet. Work the oil across the bar with a new, clean piece of lint-free cloth.
If you're problem's not electrical, your error should be gone. This happens when there's too much friction between the slider bar and the head carriage; the system shuts it down before it causes any damage to the motor.