I think in both cases, children need to feel psychologically safe confiding mistakes in parents, and neither neglected (emotionally and educationally) and unsupported, nor receive conditional love and be punished when they fail to earn achievements to their parents' satisfaction.