In many published research articles, sunglasses have been shown to affect your sleep, cause depression and other mental health conditions (and maintain them), cause more severe sunburn (compared to not wearing them for the same duration in the sun), and contribute to many other health issues.
Sometimes something so minor and trivial as a nutrient deficiency, or just wearing sunglasses for a prolonged period, can have profound implications on your health and wellbeing! I personally had health issues from wearing sunglasses every day for years. It took me 6 months to figure out the cause of the issue - my new sunglasses. Within 3 days of not wearing sunglasses, my health issues disappeared and I've not had the problem since (as I've not worn sunglasses again)! I have helped many others with this same advice.
I'm not suggesting that you should go "cold turkey" as I did, as your eyes can be very sensitive to bright sunlight after years of frequent use of sunglasses. Gradually increase your "sunglass-free" time so your eyes get used to the brightness again and your sensitivity will decrease.
If you experience sleep issues or have mental health concerns, there's usually more than one cause of these issues, and while sunglasses can be a factor, other causes also need to be investigated and addressed - which is what I can help you with!