Error "Analysis failed" when try to scan photo or nutrition information

I have an app that scans nutrition labels and foods, then generates analysis based on the scanned label or ingredients. Recently, it started showing an “Analysis failed” error whenever I scan a photo. What could be causing this? Could it be due to hitting a limit, and if so, what steps are needed to resolve it?