I don't think it's inevitable often the AI will just keep looping again and again. It can happily without frustration loop forever.
My own personal experience with LLMs is that after enough context they just become useless -- starting to make stupid mistakes that they successfully avoided earlier.