Sitemap Generation Issue - URLBuilder - must be type of string - error

Just putting this little gem of an article here: https://blog.magepsycho.com/how-to-fix-the-issue-product-images-missing-in-backend-but-not-in-frontend/#more-643

This could very well be the issue.