Gave up smoking weed, can no longer sleep. Help!

For most of the 15 years I've been sick, I have been self medicating with cannabis. I decided that smoking was definitely not good for my lungs and gave up for the new year. I still use edibles to help manage my symptoms, which is effective. However the amount I sleep has drastically dropped. Ive changed from getting 14 hours sleep in a 24 hour period, to maybe getting 7 or 8 hours. I can feel that every day I'm getting slightly worse for this lack of sleep. Does anyone have any advice? Should I push through and hope that everything equalises again soon. Or am I risking what little health I have to try and gain some imaginary benefit from stopping smoking.

I believe that my relationship with weed had become unhealthy and I would prefer never to smoke again. I'm just so tired now, I don't know what to do next.