Oh the vast mysteries of our brain. Freud gave us the subconscious and plenty on dreams. For me it remains a grand mystery. Never quite sure how I'll wake up, sometimes fearful, worried, despondent, or ready to face the day.
Generally start with meditation, indoctrinating the old brain with positives. Keeps me calm, sometimes even hopeful and optimistic. Takes time, attention, and patience.