Corrosion requires a constant source of fresh oxidant. The water trapped inside a heat pipe cannot corrode anything.
The tiny amount of free oxygen that was ever trapped inside gets consumed essentially immediatly and amounts to a relative handful of atoms on the inner surface.
If a heat pipe ever corroded and leaked, it was manufactured with a leak to begin with, or was corroded from the outside.