A sitemap that lists broken URLs teaches Google to ignore the file.
Search Console will accept almost any XML file and then quietly report that it found nothing usable. Validating first saves a week of wondering why the sitemap shows “Success” with zero discovered URLs.
The common failures are boring: a mix of http and https, a stray www host, duplicate entries from a generator run twice, or a
Usually the sitemap lists a different host than the property — http URLs on an https property, or www against a bare domain.
They help Google decide whether to recrawl. A lastmod that changes on every build teaches it to ignore the field.
Yes — up to 500 per sitemap index, and a sitemap index is the file you submit.