Correction to: Nature Ecology & Evolution https://doi.org/10.1038/s41559-023-02095-9, published online 22 June 2023.

In the version of this article originally published, Extended Data Fig. 8 was an inadvertent duplication of Extended Data Fig. 9 and has now been updated in the HTML and PDF versions of the article.