Assistant is generating the same answer multiple times

When this happens, I have to click the STOP button. How can you fix this?
Here’s an example: