This is more preventative than something that would help you now, but try to practice gratitude/active appreciation. It’s a bit of a slog to start, but once you get in the habit you’ll feel overall more positive and more directly in control of how you feel at times like this.
Basically, take time a few times throughout the day to acknowledge something you’re thankful for or are enjoying, and then say or murmur it out loud to solidify it. Sunny weather or a crisp morning? Feel good about it for a second or two. Those headphones your relative or friend got you as a gift sound banging? Mentally thank them for it.
This is one of the few therapeutic practices that have a universally positive impact on mental health and outlook, and it’s definitely served me well in general as well as in very similar circumstances to what you’re dealing with.
Think about how fast you can evacuate from the cocaine after snorting cocaine