@fortunato I forgot to say that this error doesn't show up when creating a new topic and sometimes it works also in replies. The error in the NodeBB UI is the following: "stream ended unexpectedly"
Best way would be to write a plugin that listens for the hook action:user.create. This hook receives the userData and is fired whenever a new user is created.