OUCH!

Occupational hazard for me so I wear a Protec Wake Ace that has ear flaps.
Stops all but the worst of waves/gushes. Even then nowhere near the full gush gets thru.
Bonus' are melon protection, sun protection, you can hear and converse with others and you won't lose your sunnies. For a bit over 100 spendies that's bloody good value.

EDIT: DunkO I suggested a helmet as it sounds like pressure trauma (ie smacking your head into the water or a wave) has been your problem, not ear infections etc.