Error in running scripts in 2022.2.5

Hi
I have just downloaded the stand alone PC version of 2022.2.5 and am trying to run scripts that previously ran ok.

The screen hangs once it has collected participant info - here is the error message.

wx._core.wxAssertionError: C++ assertion “GetEventHandler() == this” failed at …..\src\common\wincmn.cpp(470) in wxWindowBase::~wxWindowBase(): any pushed event handlers must have been removed

The above exception was the direct cause of the following exception:

SystemError: <class ‘wx._core.WindowDestroyEvent’> returned a result with an error set