It would not be easy to use a regular expression here since there are many possible error messages.
What you could do instead as add the following line at the beginning of your script:
On Error Resume Next
This will silently absorb all execution errors. You may still need to handle some errors in the code, depending on what exactly the script is doing.
Alternatively, you could set up a display filter via
View - Setup Filter and hide the lines that contain error messages.