I would use a continuity tester to check that everything is actually grounded, and replace ground wiring, scrape paint, etc. first, as you are the ground when getting shocked.
If that does not solve the problem, check the coil and all spark plug wires to make sure they are installed properly and not damaged.