This error message occurs when there is Multi-Pass Effect enabled in the currently rendered camera. Multi-Pass Effects is a very old way to approximate blurring effects such as motion blur and depth of field by rendering image multiple times in different animation states and then blending these images together. It’s not suitable for modern workflow as it provides inferior quality and rendering speed. It will also appear as if one frame is being rendered several times in a row for no reason.
See: Rendering restarts infinitely!