I'd do two things; 1.) get a cheap fibre optic tool to get a look inside the b.b.., including the chain stays (if it is a water/moisture issue, then they are going to be worse than the seat stays. 2.) cut a section out of that damaged seat stay to see what is happening. The pervasive pitting, over-all, deserves further investigation.