I didn't know the severity until you posted this, I apologize, that's quite a problem and IMO not at all safe, you need a break, I've done 48hrs before now a few times, I used to get on my mountain bike at 7.00am after rolling around all night and ride to the forest with an acoustic and try and burn myself out, anything to wear the buzz down, In my mind as far as I consider a chemical has increased it's flow within dopamine uptake....and has kept me up for days as a result, not sooo much now but that's my thing I think. Get checked man, insomnia does not a kind mistress make at all.

As other posters have mentioned, try not to feed it with caffeine or sugar IME.
P.S I would take the natural route first IF you can, your right in that IMO.