How to fix Error: stream ended prematurely before reading completed in Node.js | DevErrors