Emotions can affect our memory processing. Stress hormones ( For example, cortisol ) affects the amygdala. Once the stress hormones affect the amygdala, it can change the way of thinking. ( For example, you lose a loved one. You may be depressed or stressed out. )
Hopefully this helps! Have a nice day!