Thank you, but it is causing dramatic errors in my Google Search Console, which is affecting my rankings, so I want to fix the problem.
I realised at the same time I saw the error that my Sitemap was outdated. I submitted a new Sitemap recently. Should that fix the error?