Hello there, I've seen your name on posts in the past, but nothing for a long time. Welcome back.
To begin with, your thyroid can completely wreak havoc with your entire body, including moods, thought processes, etc, so what you've been experiencing is quite likely thyroid issues.
Many of us have been through what you are experiencing, so you aren't alone.