I've had this issue my first two grows, still havn't fixed it but I know my problem and should have after my first grow but I just get scared. Grow 3 will finally come out stinking just right(i hope). So my issue(may not be your issue but i hope my experience helps) is that I don't dry long enough, BUT they FEEL dry enough. BUT i know I'm not letting them hang dry long enough because by the time the stems are dry(because i pick the buds off and jar the buds but let the stems lay around for another week essentially drying out further) they STINK like skunk, yet my buds are hay/planty smelling cuz i jarred to soon. I kinda forgot after my first grow but then obv realized again once it happened on grow 2. My problem was worrying that I'd overdry cuz the outsides of buds felt dry(which is constantly something you hear as a sign of being ready to jar). Also you hear the ole "the stems bend but don't snap", well they always bend but don't snap until they snap so....
I think the best possible answer is that "the small stems snap". Alot of people say "when the stems snap" but then you hear people having great results with it being prior to snapping and you worry that snapping could be overdrying because what else could be a sign of overdrying? so who fuckin knows, i might just have a shitty drying environment at my 60% RH...
Anyway, how were your stems when you jarred?
Btw i've already done the research, you won't get the smell back...