This kind of thing is terrible. Happens to me too. Some quiet nights amplify loud thoughts.
There's ways of dealing with this, though. All take practice. These work for me:
- force myself to leave the bad place and go to a peaceful one; a good memory or a serene place. Takes self control, but I am in control of my thoughts, after all. I won't let them run free.
- creating a regular sleep routine was important. This thing was definitely worse when my body had no clue when I was going to bed. Fixed times help. A wind down routine is also useful (you know, dim lights, light reading, etc.).
- in my case, if these dark thoughts don't go away, it is usually unresolved stuff, like insecurities. Just writing it out calms me. Not to solve the issue tonight, but to help me understand that I dont have to think about this right now, because I've written it down. I can deal with this tomorrow. Then tomorrow I'll take it further.
Maybe this helps one of you out there.
Have a good night, all.
Edit: a mostly boring podcast helps as well.