Cut out refined and manufactured [censored] foods, especially carbs like sugars, starches and cereal grains. Eat lots of fresh meats, bone broths, and fresh produce. Supplement b vitamins and C.
Eat real foods and you will not get ear infections, or if you do you will probably not even know it until it is gone. The best way to protect against infectious disease is to eat real foods and thus develop and mainatin a healthy immune system.