What is it called [when you make a mistake while trying to correct another person's mistake?]..

For spelling and/or grammar, it’s Bell’s First Law of Usenet.