If you encountered error saving "customer account invite" template for Shopify, ensure that you included the following in your template.

{{ custom_message }}

We have found that exclusion the text will cause error when you save "customer account invite" template for Shopify.