Talk to your doctor? That sounds like either an actual phobia, or like sunlight is affecting you way more than it should on a physical level. Some people's skin is extra sensitive to it and stuff, and you might be able to do something about it.