To solve this problem check the synonyms configuration on your Magento extension:
Stores > Configuration > Algolia Search > Synonyms
- There shouldn't be an empty field on your synonyms
- There shouldn't be any field that ends with a comma
If you notice either of these in your configuration, fix the issue and then attempt to reindex.
If you're still seeing the error after following these instructions, please create a Support ticket