Nested FOR/NEXT loops are a nightmare for the proscreener engine to correctly compute. That’s why you get this error window, even if your code is looking ok.
You’ll have to find a solution with a SUMMATION of boolean conditions results for your second nested FOR/NEXT loop between line 8 to 15.