How to suppress JS error messages in Odoo for non-admin users?

I keep encountering JavaScript-related error messages in the Odoo user interface, particularly upon refreshing the page. These errors are bothersome and lack useful information. I would like to suppress these error messages for non-developer or non-admin users.

one of The error messages

i have tried to see if there are any options in the debug menu but i couldn’t find any.