Make a change or updated your wordpress site and suddenly your Yoast SEO sitemap just stops working without any explanation? Simply go into Settings and Permalinks and set the post type to custom with a value of %postname%. If it is already this switch it to something else and then set it back.