1. Li Shimin is too strict with children.
Li Shimin is very strict with his children, because he is a very good king, but the way of education is still lacking. Li Shimin's children have lived in the shadow of a strong father since childhood, and it is inevitable that they will think that they can't do it, and then they really can't. Being too strict with children can also cause children's rebellious psychology. Rebellion in ordinary families is not so bad, but in the royal family, it is likely to disrupt political affairs and even think about how to rebel to overthrow your father. So I think the rebellion of Li Shimin's son has something to do with Li Shimin's strict demands.
Li Shimin didn't raise these children.
Li Shimin was a good emperor, busy with politics and military affairs, and always led the army to fight. Although he is strict with his children, he doesn't have much time to raise them. There is no example but strict requirements, so I think children will also have some psychological problems. Either doubt yourself or doubt your father. Neither of these doubts will lead to any good results. Either the child is weak and afraid of his father, or he wants to resist.
3. I like some children too much
I think Li Shimin dotes on Li Chenggan too much and harms Li Chenggan. Li Chenggan was very good at first, but later he went to the palace because he was afraid of his younger brother, who was also a father's love. But Li Shimin never wanted to change the prince before. It should be heartbreaking to see that the prince who spent so much energy to cultivate betrayed Li Shimin, but didn't kill him because of his love for Li Chenggan.