There is a problem with your stove wiring - no failure of the stove itself should result in you getting a shock.
The plug for your stove must be 3-prong and the green wire must go to the frame of the stove. The ground prong in the outlet must go back to the boat ground, often it is grounded to the hull at a frame forward of the engines. There is no reason for it to go into the engine room, and I would make sure that your entire green ground system goes to the hull.
Finally, the green from the shore power must NOT go to the hull. It goes to the galvanic isolator, which then goes to the hull.
My guess is that your stove is missing the connection from the frame to the ground prong on the plug. I would look there first.
1975 32' Flybridge Sedan, twin Perkins 6-354 diesels, 1:1.53 velvetdrives, 16 X 19 props. Merritt Island, Florida