If you're hitting the ball fine, don't worry about your head.
If you're not, your head isn't the cause of the problem, but rather just the result of swaying or a reverse weight shift. Your head is not hitting the ball ( I hope

) eliminate the cause, not the effect.