This error means the LLM call itself failed upstream, not your flow. To fix:
Start with a clean test – disable Knowledge Base, MCPs, and Functions, then retry with just a short prompt.
Check tokens – your prompt shows ~3k tokens; trim it down or reduce KB chunks.
Upgrade model config – lower max_output_tokens (e.g. 512–1024) and try a known-good model.
If still failing – it’s usually a provider issue (quota, outage, or key). Test the model directly with a curl call; if curl fails, swap the key/model.