When GFCI trips, metal enclosure becomes energized
It appears that your metal box isn't grounded and you have a bad connection hitting the box. Boxes aren't grounded to outlets, outlets are connected to grounded boxes. Also, GFCI's don't need a ground to test and reset. Remove the outlet and verify that the box, is in fact, grounded, then check your connections.