Yes a bit of both, also lack of sleep didn't help. I was going through a psychose.
Best wishes for you. It's usually eye-opening when you get a scare like that, I passed through something like to finally start taking more care of myself and health.