Hi Enna,
Please can I check if you are using version psychopy 2020.2.10 ? That seemed to fix the error in this case
Thanks, Becca