Tuned model sometimes fail to generate content

I got the following error when using a fine-tuned model from Vertex.
And the weirdest thing was that, sometimes the request succeeded.

rpc error: code = Invalid Argument desc = Request contains an invalid argument.

It also happens in the vertex AI studio.

It is very random but I see that some prompts cause more than others. Some prompts rarely return a prediction.