LoopEndIteration is not defined - online experiment crashing

OS: macOS Mojave version 10.14.6
PsychoPy version: 2022.2.3
Super quick summary: Work locally, crashes online.
Possibly helpful info: Although the error message does not reference it, I am using a Textbox which I believe is in Beta still.

I have created an experiment using the Builder which runs fine locally. The first time I ran it online, it crashed immediately with the following error message:

ReferenceError: trials_famcheck_LoopBegin is not defined

The famcheck loop the error message refers to is near the end of my experiment, but it crashed immediately.

Having looked on this forum, I saw a similar issue was solved by adding a big loop around all of the routines with nReps set to 1 and no excel sheet given in Conditions. I tried this and most of the experiment ran, it crashed with a different error message when it got to the famcheck loop the error message references.

New error message:

ReferenceError: trials_famcheckLoopEndIteration is not defined

I am not sure what the issue is, as it runs fine locally. Could anyone help with my issue please?

Thank you,