Studies are showing that having healthy levels of vitamin D in your system can mean better brain cognition. If you can think better, you problem solve more effectively. Could that also mean that you are able to cope with stress better because your brain functions at a higher level?
http://www.naturalnews.com/z044835_vitamin_D_intelligence_cognitive_function.html