I dont wear contacts but I should now that I think about it that could be the cause.
Headaches are verry common at this stage in pregnancy, if they get too bad ask your OB what you can take!
Are you wearing contact lenses? I read somewhere long time ago that they can give you headaches when you're pregnant (happens to me too, I just take them off and I'm ok)