Hi,
I had the same issue after upgrading (see previous post on this forum) with allas no elegant solution. The thing that ‘solved’ it for me was to clear all hidden files and reprogram the entire experiment in the latest Psychopy version 2021.2.3. Not really a solution but may be more time saving then trying to fix this weird bug?