Correction to: Nature https://doi.org/10.1038/s41586-024-07266-7Published online 3 April 2024

In the version of the article initially published, the affiliation of Stephanie Grunewald (Great Ormond Street Hospital for Children and Institute for Child Health, NIHR Biomedical Research Centre, London, UK) was incorrect and has now been amended in the HTML and PDF versions of the article.