"list index out of range" After presenting stimulus list finishes

OS (Win10):
PsychoPy version (2022.2.5):
Standard Standalone? (y)
What are you trying to achieve?:
Subjects are shown 15 images with a brief mask after each image. There is then a filler task using an image. After that, subjects are presented with variants of the 15 presented images randomly intermixed with 15 new images. They must determine if the image is old (previously presented) or new.

What did you try to make it work?:
I counterbalanced all stimuli lists with the variable lists for the presentation phase coming from an excel sheet with the possible presentation lists as the variables and the values being images pulled from a folder. There are 15 values and the presentation block and mask are contained in a loop that runs 15 times. The image in the presentation block is set to show the current image as in the picture below.


Prior in the build is the code current_p1 = 0 and in the end block code for the presentation block is current_p1 +=1.
After the loop with presentation and masks block is the filler task.

What specifically went wrong when you tried that?:
The error code I get:
498.7408 EXP Imported instuctionprompts.xlsx as conditions, 3 conditions, 1 params
498.7477 EXP Imported wordsearch.xlsx as conditions, 6 conditions, 1 params
498.7582 EXP Imported face_pres.xlsx as conditions, 15 conditions, 6 params
498.7738 EXP Imported face_test.xlsx as conditions, 30 conditions, 6 params
498.7851 EXP Imported face_pres.xlsx as conditions, 15 conditions, 6 params
498.7860 WARNING duplicate variable names: p2b, p1a, p1b, p2a, p3b, p3a
498.9117 INFO Loaded monitor calibration from [‘2023_01_14 15:58’]
498.9672 EXP Imported instuctionprompts.xlsx as conditions, 3 conditions, 1 params
498.9744 EXP Imported wordsearch.xlsx as conditions, 6 conditions, 1 params
498.9850 EXP Imported face_pres.xlsx as conditions, 15 conditions, 6 params
499.1650 EXP Imported face_test.xlsx as conditions, 30 conditions, 6 params
499.1768 EXP Imported face_pres.xlsx as conditions, 15 conditions, 6 params
499.1778 WARNING duplicate variable names: p2b, p1a, p1b, p2a, p3b, p3a
pygame 2.1.0 (SDL 2.0.16, Python 3.8.10)
Hello from the pygame community.
facesp/face5.png
Traceback (most recent call last):
9
wspic/wordsearch6.png
facesp/face5.png
9
wspic/wordsearch1.png
facesp/face5.png
9
wspic/wordsearch5.png
facesp/face5.png
9
wspic/wordsearch5.png
facesp/face5.png
9
wspic/wordsearch3.png
facesp/face5.png
9
wspic/wordsearch1.png
facesp/face5.png
9
wspic/wordsearch4.png
facesp/face5.png
9
wspic/wordsearch2.png
facesp/face5.png
9
wspic/wordsearch3.png
facesp/face5.png
9
wspic/wordsearch6.png
facesp/face5.png
9
wspic/wordsearch6.png
facesp/face5.png
9
wspic/wordsearch6.png
facesp/face5.png
9
wspic/wordsearch6.png
facesp/face5.png
9
wspic/wordsearch3.png
facesp/face5.png
9
wspic/wordsearch1.png
[‘facesp/face4.png’, ‘facesp/face1.png’, ‘facesp/face4.png’, ‘facesp/face5.png’, ‘facesp/face1.png’, ‘facesp/face5.png’, ‘facesp/face2.png’, ‘facesp/face3.png’, ‘facesp/face2.png’, ‘facesp/face3.png’, ‘facesp/face5.png’, ‘facesp/face2.png’, ‘facesp/face3.png’, ‘facesp/face1.png’, ‘facesp/face4.png’]
3.1271 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use [‘sounddevice’, ‘PTB’, ‘pyo’, ‘pygame’] (in that order).
9.5269 WARNING User requested fullscreen with size [1280 720], but screen is actually [1920, 1080]. Using actual size
1.9498 WARNING Monitor specification not found. Creating a temporary one…
File “C:\Users\Grant\Documents\Claremont Graduate University\2023 Spring\PSY162 Learning and Mem\ML Original Project\OG_project2_copy_lastrun.py”, line 2201, in
pres1image.setImage(face_p1[current_p1])
IndexError: list index out of range
################# Experiment ended with exit code 1 [pid:9784] #################
634.2810 EXP Imported instuctionprompts.xlsx as conditions, 3 conditions, 1 params
634.2881 EXP Imported wordsearch.xlsx as conditions, 6 conditions, 1 params
634.2989 EXP Imported face_pres.xlsx as conditions, 15 conditions, 6 params
634.3146 EXP Imported face_test.xlsx as conditions, 30 conditions, 6 params
634.3256 EXP Imported face_pres.xlsx as conditions, 15 conditions, 6 params
634.3267 WARNING duplicate variable names: p2b, p1a, p1b, p2a, p3b, p3a
634.4478 INFO Loaded monitor calibration from [‘2023_01_14 15:58’]

Now here is the weird part:
Every bit of discourse I could find on “IndexError: list index out of range” seems to indicate this error occurs when the variable is first displayed. For me, what happens is I get through the 15 presentation images and only then does PsychoPy crash. I separately tried going from 15 to 14 loops and adding a 16th value to make sure the problem isn’t PsychoPy trying to load one more value than there is. Neither of these attempts worked. What is more, the filler task is next. The problem does not appear to be the filler task itself as it worked fine when I put it before the presentation phase as a test and there is no code in the presentation phase that interacts with anything in the filler block.

Thanks for taking the time to read. I would really appreciate any tips or help anyone can offer.