Have you tried using earplugs (speedo, arena)?
I myself had to shake my head all the time during lap swimming. It was bothering me so much. Now I just plug my ear and the problem is solved. Also it is good if your pool is noisy (mine is). You can relax and focus more on your technics or your thought with the less distraction.