When I moved to Colorado my intake skyrocketed. Was up to around 7 grams a week (16-25%thc) with 90% concentrates mixed in for fun. I was able to work with 0 problems for a few months but started noticing subtle fogginess over the course of my days and like you, holding state was difficult ( along with general debugging slowness )
Naturally I figured it would be wise to slow down consumption and went on a tolerance break. Within a few days I was back to 100% and now only smoke a few times a week. Currently I notice no negative day to day issues and all mental fogginess is gone! I like to sit down after work, toke, and then code.. so happy to report my anecdotal data as positive!
This goes for other drugs too, even "normal" ones like caffeine. I had a nasty habit of drinking a ridiculous amount of coffee and noticed very similar issues as above with cannabis. And like above, cutting the caffeine down was the fix for me.
Take a break for a few weeks ( or at least cut back significantly ) and see how you feel. Smoking that much weekly is only necessary with an extreme tolerance anyway.
Good luck and hope you feel better!
Plus, smoking after programming all day helps you shift perspective and think differently about any roadblocks you're stuck on. Best of luck.
I find it quite hurmorous indeed that there are those that would suggest that we are not intellectually capable.
Glad to know there is someone else like me out there. :)