Why am I encountering a status 500 error while creating a 'New Record' trigger in Salesforce integration?

According to this thread, the Salesforce instant triggers are not able to deploy Apex code directly to production (this is the code that powers our webhooks)