It sounds like you get really serious problems. If you are not a current glasses user, it might be some discomfort when you wear the first pair of glasses. It may take a few days or even one week to adapt to your prescription glasses. I know you got a pair of prescription sunglasses. So there might be many causes of your headaches. Maybe you just buy a pair of sunglasses of poor quality. They can't block UV rays and glare for your eyes so you may suffer from headaches when you are in the outside just like you don't have any protections. Or the tinted lenses block your vision so that you can't see things clearly. By the way, do you wear sunglasses at home? I think if you use sunglasses at home, you may suffer from headaches because you can't see things clearly. Blurred vision may lead to eye strains and even headaches. Or you have some kind of eye disease so that your eyes can't function as well as they do before. You'd better have your eyes checked too. Good luck!