Here is the image from the Stats menu:
Typing an invalid search term will show this persistent error. It would not go away by clicking Enter. It would only disappear if you press "OK" using your mouse.
I don’t think any damage was done as I checked the database and all is clear.
Perhaps provide a more ‘friendly’ message? Something like the one found in the Browser:
Invalid search - please check for typing mistakes.
What do you think?
EDIT: btw checking database doesn’t fix the issue