solecism, faux pas, gaffe... (see Bartleby)

None of them quite conveys point I think you're trying to emphasize, which is that by making the correction the perpetrator is actually betraying his ignorance. My favorite example is the lady from Sinclair Lewis' Main Street who tried to display her erudition by pronouncing "hoi polloi" as "wa pollwa" -- she thought it was French!