decrepit said..
Not good at being clear am I?
Mains water leak in the cold pipe. Dry it out macro?????
from outside if touching any other surface...
for example, if you put any other metal thing on the copper pipe
and the connection is wet
then Volta battery has created that dissolves one of those or both metals...
But that is only one of the possibilities
I have a similar copper pipe completely perforated inside a hot water cylinder.I did replace this solar hot water cylinder now with simple full electric
but from curiosity, I did open the broken up
To see what is the problem and why.
Now I know. Manufacturer fault ( AUSSIE MADE NOT CHINA) in design.That copper spiral was inside a copper cylinder but welded with tin/lead to supporting arms.Failure was exactly above this welding spot where two different metals met.
electrolysis..

so one may blame bacteria
the other chemicals that could dissolve copper -
and electrolysis is the last but most likely if the damage is the focus to a small area

you could blame Volta, his fault not the plumber
anyway
from the chemical analysis, you could see most likely blue crystals near damage CuSO4 if that is sulfur bacteria at play

but if you flush your pipe with chlorine you will create another fascinating in color chemical. Cupric Chloride.
this stuff attract water -

but if stuff was more like black , copper sulfide is most likely indeed
I hope that I did help
to make right decision

to replace that stuff with plastic
nothing eat plastic!!