Have you spoken to a therapist about these feelings? Things like depression can make negative thoughts seem much more real and reasonable than they actually are.
I mean, if you’re terminally ill and dying next week I guess it’s possible those are realistic thoughts. But if that’s not the case then that sounds much more like doom spiraling to me.