GPT-4 repeats an answer word by word

Out of the blue ChatGPT repeated an answer word by word inside the very same completion. I’ve never observed this before, and I wonder if there is a comprehensible explanation for this. What went wrong? Can it be understood from what we know about transformers?

When I asked ChatGPT why this happened, he seemed to “understand” immediately what I was talking about and apologized.