My favorite is the erroneous theory of immunization that informed Pasteur's successful development of a vaccine:
Accordingly, why was Pasteur such a genius as to discern how the immune system functions to protect us against invasion by the microbial world when no one had even made the distinction between fungi, bacteria, or viruses, and no one had formulated any theories of immunity. A careful reading of Pasteur’s presentations to the Academy of Sciences reveals that Pasteur was entirely mistaken as to how immunity occurs, in that he reasoned, as a good microbiologist would, that appropriately attenuated microbes would deplete the host of vital trace nutrients absolutely required for their viability and growth, and not an active response on the part of the host. Even so, he focused attention on immunity, preparing the ground for others who followed.
Accordingly, why was Pasteur such a genius as to discern how the immune system functions to protect us against invasion by the microbial world when no one had even made the distinction between fungi, bacteria, or viruses, and no one had formulated any theories of immunity. A careful reading of Pasteur’s presentations to the Academy of Sciences reveals that Pasteur was entirely mistaken as to how immunity occurs, in that he reasoned, as a good microbiologist would, that appropriately attenuated microbes would deplete the host of vital trace nutrients absolutely required for their viability and growth, and not an active response on the part of the host. Even so, he focused attention on immunity, preparing the ground for others who followed.
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3342039/
I had heard this years ago and recently was trying to place it. I finally tracked down a credible source.