N1QL error. Usually out of memory

This is straight forward there might be some setup issue . Why do you use back-ticks in fromString.
Check 8093 port is open

https://docs.couchbase.com/nodejs-sdk/current/n1ql-queries-with-sdk.html#placeholders