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

I think I’ve found a way to get through this. I don’t know the actual issue or how to resolve it, but I think that there are just a few images that are causing this problem.

I don’t want to delete them directly out of media/catalog/product because then the db won’t be updated. How can I find which product is using a particular image. Yes they are name, but I want to make sure I pinpoint this as I’m running

bin/magento catalog:images:resize

and it takes quite a while each time I run it. At this point, if this is the solution and I have to run it 10 times, I am completely fine with that. I got about 20% through and it hit the same image twice and stopped.