Gemini Python SDK, response schema, data cut off, with max_output_tokens

Using gemini-1.5-flash-001, with below defined response schema, and max_output_token. Sometimes, generates unusual, repeated responses, and text is cut off, with invalid JSON syntax.

Can this issue be resolved in SDK, mapping the class to Pydantic, with Strict mode to True, to solve it ?

My respoonse schema, asking Gemini to provide some opinions (pros and cons):

class GeminiResponse(typing.TypedDict):
    pros: list[str]
    cons: list[str]