Not those exact symptoms but yes, this has happened to me. Lack of sleep is such a big trigger. I've described it to my doctor as my brain "going on the fritz." Like a TV that only gets static. The older I get the more impacted I am by lack of sleep.
Daily exercise and some kind of relaxation or meditation practice helps me the most, because they help with the stress and also help me sleep better. I do a nightly yoga practice right before bed that is hugely helpful. It's on Youtube, I recommend it:
https://www.youtube.com/playlist?list=PLW0v0k7UCVrngDE2PN5WOc8hzwYhAb2U9
I like doing it in order but you can also just pick one at random. The yoga is very gentle and easy, it's about relaxation and reducing physical and mental tension before you go to bed.
Also vigorous exercise during the day helps a lot, something that really gets you breaking a sweat and elevates your heart rate. I live weights and play tennis. I like tennis because it really consumes my brain while I'm playing, so it functions as a kind of mindfulness where I'm very focused on the present moment and what is happening in the game, at the same time that I am very tuned into my body.
Obviously reducing screens and exposure to stress-induing apps (news, social media are the big ones for me) also helps, but my job requires a certain amount of engagement with both so I can only reduce so much. But I try to avoid it entirely in my private life and just restrict it to work.