Hello
A possible cause for this error is that you could be exceeding the ProductSet maximum reference images [1-2]; this limits to a million reference images per ProductSet and, if this happens, the periodic indexing could fail. Additionally, the GitHub repository [3-4] and the Java documentation [5] also mentions that “[...] the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet”.
It’s possible that you’re hitting some type of limitation [1] that affects the indexation. Do you know the time a product gets un-indexed because of not searching for it? Is it periodical? E.g.: “every 7 days that a product hasn’t been searched it gets un-indexed” or the time before getting un-indexed varies?
Regarding the limitations, I don’t have the tools to look into your project. Perhaps, if this issue is affecting you drastically, you could open a support case and a colleague will look deeply into your project to see if there is something wrong.
[1]: https://cloud.google.com/vision/product-search/quotas
[2]: https://support.google.com/cloud/answer/6282346?hl=en