Assistant Thread limitations

check the tokens first:
https://platform.openai.com/tokenizer

review your code with print/log statements to see what and how much text you are sending to it.

if you are sure it is not a coding error, I suggest to report it as a bug:

https://community.openai.com/t/how-to-properly-report-a-bug-to-openai