You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near

I solve this issue by downgrade to ERPnext v13

Frappe & ERPnext is not stable on MacOS

but i found A LOT of errors on site at runtime

I finally gave up , and buy VPS Ubuntu 20. it’s work good.