I’d need to see the rest of the script to answer that.

Generally, you get that warning if you either:
* Nest a macro loop inside a macro loop or
* Break from the macro loop without using the macro break.

I’m guessing it’s the latter.