Errors and disasters do not come about by one causal factor. There is always a chain of unpredictable events. This also poses a problem for scientists. They do not know the law of conservation of misery.
The memory develops after birth. A baby starts by registering how it should move. From around the age of three, a child can register events which form part of its life story, to be recalled in later life. But emotional events such as traumas are possibly registered much earlier as stray facts. These can elicit reactions, although you can’t retell them.