Sometimes Cursor Freezes Reasoning and Go Looping

Sometimes I noticed that the Agent is not able to proceed with the code editing.
It says that “understood” the expected changes, but suddenly fall into a loop.
Example in the screenshot: