When I drag and drop the string "[0]" (with or without the quotes) onto Node-RED workspace, I get this error:
(or e.type is undefined depending on the minification of the .js.)
This was using NR 4.0.5.
What is happening is that the drag&drop behaviour assumes that if the content can be parsed as valid JSON then it must be an array of nodes.
I as a user have no idea why that is happening nor does the error message help me, all I did was drag JSON content onto the workspace.
The cause of the error is this line in RED.node.import and this code is displaying the error message.
It might be better to ignore that error and not display it to the user. Drops that aren't handled are also silently ignored, i.e., the user won't necessarily expect feedback to be generated from their drop.
Sure the console could display the whole error instead of just the stack trace.
But, your case is related to your drag and drop plugin, the core uses drag and drop to import flows. It is not supposed to support anything else (on the workspace).
The common error when importing is a malformed JSON flow and there the error is notified via a more understandable message by the user.