Video Recording not working over multiple trials

OS (e.g. Win10): Windows 11
PsychoPy version (e.g. 1.84.x): PsychoPy v2023.2.3
What are you trying to achieve?: I am trying to record audio and video using the camera while presenting a movie stimulus. Then, in the next trial in the routine, I am presenting 3 questions, and I am trying to record audio and video responses to the questions.

What did you try to make it work?: I have used the camera beta version, and it works during the first trial (recording video while the movie is playing). However, on the question trial, this fails to work.

What specifically went wrong when you tried that?: I have had to force quit several times because of malfunctioning where it will hang on a grey screen. When it does not do this, the error I get is psychopy.hardware.camera.CameraFormatNotSupportedError: Specified camera format is not supported.
[dshow at 0000017e7fa7c400] Could not find output pin from audio only capture device.[dshow at0000017e7fa7c400] Could not find audio only device with name [at device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{444BBE72-FEC7-4527-855F-E11294E83B08}] among source devices of type video.################# Experiment ended with exit code 1 [pid:6692] #################
However, I do not get this error code (despite having the same parameters) when I only run one trial.