So sorry that this happened. It's possible it was the genetics as well that this happens. I just went thru this myself with this grow and lost 2 ladies. the strange thing is they only showed up in the middle of the branch. Everything else looked really sweet. but since this does happen, it changes the whole composition of the plant, as I found out doing research on this issue. Bottom line is it can be o.k. smoke but probably not worth the trouble. I just eliminated these 2 from my room. Light, stress also can affect this triggering the change as well as temp and humidity. depending on where you live this is where you have to "adapt" to your conditions.
I use a small bedroom as my grow area, has a ceiling fan for air circulation and I keep all 3 important issues right within "target" ranges, can't do no better than that. I also use 4x t8 shop lights for a total of 16 tubes in use using 6500k for vegging then switch to 2700k for flower. Out of all my grows I went thru 3 that this happened to me. 1 fully seeded and the smoke was like back in the day "commercial" as we called it or old school weed. The other 2 I didn't waste my time with them as to take no chances with my others.
You can make a cheap a/c unit with an old not used bucket or ice chest, some ducting, and a small fan to at least reduce the room temp if too hot, saw this on youtube.
oh, 1 last thing, this they will produce pollen and release to lower flowers thus seeding to reproduce but this carries on to the next seed. I don't like it myself but nothing you can do, bummer.