I suspect the error was caused by a corruption somewhere. I'd suggest deleting node_modules and reinstalling. Maybe even try clearing your npm cache.
nodeBB is a nice software, something different like the php ones. So let me ask a question, is there any plugin that resize images while uploading or display it resized? At the moment it display full-size.
Maybe one do know a plugin or other way.
It was recently discussed here.