Psychopy task not recording reaction time when button is pressed during specific frame

Hi there, I am running an fMRI task in Psychopy 2025.X.X on Windows 11 in which a target appears and the participant is instructed to press the button during this target. The task is supposed to record the reaction time for this button press. For the most part, the code does this, however, in a variable number of trials, the reaction time is not recorded. The log files all look like this when this occurs:

319.4994 EXP unnamed Polygon: autoDraw = True
319.4994 EXP unnamed Polygon: autoDraw = True
319.5161 EXP unnamed Polygon: autoDraw = True
319.5328 EXP unnamed Polygon: autoDraw = True
319.5495 EXP unnamed Polygon: autoDraw = True
319.5661 EXP unnamed Polygon: autoDraw = True
319.5825 EXP unnamed Polygon: autoDraw = True
319.5993 EXP unnamed Polygon: autoDraw = True
319.6161 EXP unnamed Polygon: autoDraw = True
319.6329 EXP unnamed Polygon: autoDraw = True
319.6495 EXP unnamed Polygon: autoDraw = True
319.6662 EXP unnamed Polygon: autoDraw = True
319.6828 EXP unnamed Polygon: autoDraw = True
319.6995 EXP unnamed Polygon: autoDraw = True
319.7161 EXP unnamed Polygon: autoDraw = True
319.7328 EXP unnamed Polygon: autoDraw = True
319.7343 DATA Keypress: 1
319.7495 EXP unnamed Polygon: autoDraw = False

I tried switching between Psychopy default dependencies and iohub to accept button presses and the issue persists. I am wondering if anyone has experienced similar issues and if there are any easy workarounds? We are using a Fiber Optic Response Devices 8 Button fMRI Response Pad.

Thank you!

Akash