There is possible evidence that a mother’s body builds up resistance to testosterone and interferes with it with each male pregnancy; this may account for why a boy’s odds of being homosexual go up with birth order.
The solution then may be biochemical or hormonal - not psychological.
It probably has more to do if the pregnant women drink soda pop when they are pregnant. The chemicals in our food certainly have an effect on pregnancies.