Syntax error usually occurs after you have made some changes to your website.
You may have installed a new plugin or theme. Also, you may recently have made some code edits to add certain features to your WordPress site.
Depending on the changes you made, you can quite easily pinpoint the source of the error, and make the needed corrections to fix it.