I agree with the suggestions in post #17.
The damage to the chainstay was caused by chain suck. It has nothing to do with missed shifts. It's caused by a worn out chainring. Perhaps the previous owner solved that problem by flipping the chainring around backwards.