Hey there, I'm an experienced marijuana user, been smoking weed on and off for 5 years now. Had a period of time where I would go all out on the ganja. Been through similar experience such as yours. If you want to keep smoking here's my advice:
Go sober for a month or so, see how long you can go, give your brain sometime to adapt to the lack of THC in the system. Once you are done with your break, proactively change your lifestyle so that you don't smoke weed every day, maybe keep it for the weekends then move on to every other week. That way your brain can keep up with all the THC you're putting it through without affecting your tolerance, this part is important so that the side effects don't return.
The insomnia is probably caused by your tolerance or by the type of weed you're smoking be it indica or sativa. I find that sativa keeps me more active than indica. Going sober for a month or so should be able to curb the insomnia experienced from smoking weed. Also weed increases the amount of blood that goes to your brain, that can also be a factor of your insomnia.
Exercise will work wonders for your body, go out for a run at the park for an hour or so on the daily, that should help sleep better and significantly decrease your tolerance and return the sleepiness of your highs.
Also, take multivitamins on the daily, could be a vitamin issue, also good to take for your own well being.
If the insomnia persists, consider a longer break than one month, try two maybe even 3, longer if it persists.
Also consider alternate forms on getting marijuana into your system, have you ever tried a vape? The smoke could be a factor.
From my experience I find that smoking weed on the daily or close to daily will lead to consequences however those consequences can be easily compromised with significant lifestyle changes. Remember your will power and you should be fine. Good luck.