Catch sitemap errors before Google does
Paste your sitemap XML or open the file. The tool checks the XML itself, the namespace, absolute URLs, spaces and fragments in URLs, duplicates, mixed hosts, http and https mixing, valid lastmod dates, allowed changefreq values, priority from 0 to 1, and the limits of 50,000 URLs and 50 MB. Each problem shows its line number.
What matters to Google
Google ignores changefreq and priority and uses lastmod only when it is consistently accurate. After fixing errors, submit the sitemap in Search Console and list it in your robots.txt. To check the pages themselves, use the broken link checker.