I ran across similar issues. In my case I'm hitting the Guardrail Violation for prompts over (roughly) 4000 characters. Under that, I'm fine. Innocuous prompt. Also filed FB18809149. I wondered if it might be a false exceedsContextWindowSize error, but with comments above, maybe not.
Topic:
Machine Learning & AI
SubTopic:
Foundation Models