buy stable genetics.. 2 or less phenotypes with low hermi tendecies.. or feminezed.
your hps didnt cause this unless they are being heat stressed, maybe drought but i kinda believe some mj plants are predesposed (spelled wrong im sure(to have small percentages of both sex organs?and not turn due to stress factors... like the ones that maybe sprout banans 2-5 per plat n in final ripening, usually resulting in 5 or less seed, if the pollen is even viable.. or then the 50/50 that looks good untill week 4, but then explodes in seed pods round week 6. or the 60/40 m to f that just looks fine hidden in your patch, till you discover it 4 weeks into bloom pissen pollen everywhere.. sorry to rant.
get a good mom, dial her in and you can eliminate alot of guess work