Sitemap gives a 404 error when using the alternate cron

Sitemap URL is displaying a 404 error when we use the alternate cron. It's redirected to /sitemap.xml?doing_wp_cron=1....