Research on the midlife crisis reveals why at ages 40 to 46 you can feel the most unhappy in your life, and how to rebuild your mental state afterward.