Error I do not understand

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. macOS 13.4.1):
PsychoPy version (e.g. v2021.2.3):
Standard Standalone? (y/n) If not then what?: yes
What are you trying to achieve?:
I am trying to get a set number of breaks in my routine a
What did you try to make it work?:
In the builder mode, I have one routine which is the experimental portion an inter-trial interval in between each image shown in the first routine, and finally a break section. The entire process is to consist of 5 experimental sections with 4 breaks, after which the experiment is to leave the loop and move to the conclusion page.
What specifically went wrong when you tried that?:
Here is my builder code: if break_2 == 0 or break_2 == 192 or break_2%48 !=0:
continueRoutine = False

Which I have tried to work with. Here is the error message

A value is trying to be set on a copy of a slice from a DataFrame

See the caveats in the documentation: Indexing and selecting data — pandas 2.2.0 documentation
trialsArr[col][row] = float(tryVal)

Please help!