Video loop crashes

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

OS (e.g. Win10): both Windows 10 and MacOS (M1)
PsychoPy version (e.g. 1.84.x): 2022.2.2
Standard Standalone? (y/n) If not then what?:
What are you trying to achieve?: I want to play one random video file from a list of 4 videos. Therefore, I want to first read all video files in xlsx file, randomize its order, and then terminate loop right after first trial. However, when I make a loop with condition file, the whole experiment just freezes and I need to shut my computer down and restart the whole thing. However, when I remove the loop, video plays just fine. I don’t know why the loop doesn’t work.

What did you try to make it work?: I tried to make a condition loop file, that looks like this:

and psychopy builder component with loop that looks like this:

What specifically went wrong when you tried that?:
The computer just freezes on the previous component screen and I need to either force quit the app or restart the computer. So it doesn’t return any error messages.