Correction to: Nature Medicine https://doi.org/10.1038/s41591-025-03875-5, published online 14 August 2025.

In the version of this article initially published, the first and last names of Nikhil I. Khushalani were transposed. The name has been amended in the HTML and PDF versions of the article.