Does ist exceed your token count at a certain point?
This is a bug we see with the assistant api on the same model when we try to generate JSON.