check and double check your wiring. sounds like a loose connection somewhere or something is bare and is jiggling around and grounding out