Failed to start node-red. "path" argument must be of type string. Received an instance of Object

then my suggestion would be uninstall the custom module and try again.