How do you deal with an electrified water pipe if you cannot access the miswired part?

You have to find and correct! If the water pipe is electrified, Then connect a volt meter from the water pipe to ground, and measure the voltage. Now turn circuits off one at a time Until you find the circuit that is energizing the piping, and take it from their..