‘Seek operation failed’ error after updating processing

Hello I have written an easy code that loops a video. I have no issues on Processing 3. But I recently updated to the new Processing 4 and the code only plays out the video once and stops. Below I get the ‘Seek operation failed’ error. What am I missing ? Do you guys have any idea what might be causing this ? Thank you