It's more so stress that causes the plant to hermie. Yes light and other things play a factor but stressing the plant is the culprit to your problem. I'm sure some strains can take getting the shit beat out of them but many cant.