This has come up before and will not be a grounding issue. We were discussing pipe corrosion today at our monthly meeting and its a very complex subject, but it almost always is a water quality issue that causes corrosion.
To start get a copy of the customers water supplier Consumer Confidence Report, it gives the results of certain required water tests, in particular look for the compliance with the EPA lead and copper rule. Water with a low ph erodes the protective oxide layer on the inside of the pipe, and causes lead corrosion (sound familiar? This is what happened in Flint, MI)
Our water system adds caustic to raise the PH from 7.4 to 8.1
And I have reports from the American Water Works Association that states pipe corrosion is caused by DC current, not AC. very rare to find DC current on water pipes.