I have that. I will be trying to sleep but can’t because of my anxiety telling me that I won’t wake up if I fall asleep.
It doesn’t happen every single night, but when it does hit it keeps me up until the early hours of the morning until I just get so exhausted I pass out. I’ve gone nights without sleeping, though.