How to receive email notification when an error or bad request happens?
I'd recommend using a service like Sentry or Bugsnag that are tailored exactly for this situation and include some Craft integrations as well:
https://plugins.craftcms.com/search?q=sentry
https://plugins.craftcms.com/search?q=bugsnag