Does anyone know how I might remedy this problem?
check to see if there's another type of pipe its hooked to, IE galvanized pipe, if so that's whats causing it, tow dissimilar metals cause pitting the only remendy is to switch to pvc pipes, [ also sand in the pipe will cause it ],
how much i know is: salt solution sugar solution cake batter air purfume soapy water etc.
William B is rightwe had this problem also, it was dissimiliar material reacting with each other causing pitting in the copper which led to leaks.
Probably minerals in water as mentioned above. But believe I would go with the plastic pipe as mentioned as you could install it for about the same amount or less of what a water softener system would cost. And they also require a lot of maintenance.