If your sitemap doesn’t load: /sitemap_index.xml
In WordPress, go to Settings > Permalinks
Click “Save Changes” without making any modifications.
We also have additional information regarding the sitemap files creating an error here: https://kb.yoast.com/kb/my-sitemap-index-is-giving-a-404-error-what-should-i-do/