How can I fix the error of non-existing image IDs on my product?

I just had the same issue and once I made sure each variant had a different photo, it resolved the issue.