Although I am not mathematician, but I would guess that there are numerous theorems which have very complicated proofs, and I would further assume that a lot of them have real world applications (e.g physics, economics etc)
Since even the smartest do make mistakes, I start wondering whether there was a least one case in history when someone came up with a conjecture, ostensibly provided correct proof (but actually proof was wrong), then people started using this theorem, and later someone had realized that theorem, is in fact, wrong.
Was there such a case?
Since we want an answer where an incorrect result was extensively used before it was detected and corrected, I am quoting an example from applied mathematics/physics. Hence posting a as a separate answer.
Issac Newton discovered the laws of gravity and motion and his theory and equation worked very well for precise calculation of the motion of heavenly bodies. But there was one exception; the planet Mercury always deviated from the calculation predicted by Newton's theory of gravity and for 250 years astronomers still used wrong calculations because even though Newton's equations of gravity were not very accurate for Mercury, there was no alternative set of equations to describe the universe in a more accurate way.
At the start of the 20th century, Einstein discovered that nearby a massive body such as he sun, the laws of gravity deviated from Newton's equations due to the bending of space and time by the strong gravitational field of the massive body. Newton's equation would only work when we are far from a massive body but fail for a planet like Mercury which is right next to the sun. Einstein's general relativity corrected Newton's equation and the modified equations perfectly described the motion of Mercury. In effect, the equation of general relativity was a correction applied to Newton's equations.