Correction to: Nature Medicine https://doi.org/10.1038/s41591-024-03412-w, published online 20 January 2025.

In the version of the article initially published, in the thirteenth paragraph of the Discussion, the sentence “the study included 1,032,192 (5.28%) women…” was incorrect and has now been amended to “the study included 103,219 (5.28%) women…” in the HTML and PDF versions of the article.