Hello,
I suspect this is an issue with PsychoPy not having permission to control the screen. You can switch ioHub to PsychoToolbox or system preferences → security → input monitoring → add psychopy. Would also add it to security → accessibility.
Previous thread here: Runtime/ioHub server error when running experiment - #3 by M_K1