When you ground the unit you need to make sure your connections are "linear" and not creating a loop. That will defeat the purpose. We are speaking of grounding the machine here and not hooking up the grounds when you wire the control box.
90% of the time the issue that you are describing comes from loose/nicked wire or grounding problems.
On the control box end: Those tiny wires going into the wire connectors at the control box can often be the problem even though you don't think so. Particularly the grounding ones where you often have to tie a few together.