Problem with an experiment

Hi everybody.
OS win 11.
PsychoPy version 2021.2.3
Standard Standalone? (y/n) y
What are you trying to achieve?: help with a bug in my experiment.

I have an experiment where participants are shown 4 targets randomly for 2 seconds, using a CSV file. They need to respond with either a right or left arrow based on the target stimuli’s location. Following their response, there is feedback provided (correct, incorrect, or too slow if the response took over 2 seconds), all of which is implemented using code and functions correctly.

However, an issue arises in the subsequent stage where participants are asked to rate from 0 to 3 how well they perceived the target. The problem occurs if a participant accidentally clicks the right or left arrow; in the next trial, they are automatically presented with feedback without being given the chance to respond.

Has anyone encountered this issue before, and if so, how was it resolved?
thank you in advance!!!