You said this earlier:
That said, it seems to work most of the time when clicking in another field, and it usually fails when clicking into a blank space on the form.
Suggesting that there is a behaviour running when they ‘click in another field’ that is what you want to happen, but not when they ‘click into a blank space’
sounds to me like you have an issue with how a specific behaviour is running on an event you need to review.
the fact that debug is slow could also be indicative of your problem in that you have behaviours running where they are not needed . even if it is slow, take the time to run the form in debug mode so you CAN see what is happening and then you can see if what is running is actually what you want