It might be caused by the sensitivity to light. Sensitivity to light can be called photophobia referring to inability to light. Light would cause discomfort or even headache, with an urge to close eyes or squint. Photophobia itself is not an eye disease but a symptom of various eye conditions, for example infection or inflammation. It could be an indication of some underlying disease for example severe migraine. There are still many possible reasons for light sensitivities, including corneal abrasion, keratitis, uveitis, central nervous system disorder and so on. To find out the optimal treatment, you should visit your doctor to see what caused your increased light sensitivity. Polarized sunglasses would effectively reduce the glare which might irritate eyes. Make sure to wear sunglasses to protect your eyes whenever you are possible to be exposed to strong light. Some glasses lenses with special coating can also reduce the impact from glare or strong light.