After many successive and successful queries SQL Server starts refusing connections
What node.js version are you on?
Apparently node version: v.12.6.0 required me to use packetSize: 8192 to avoid the Connection lost - read ECONNRESET error
If that is no the problem try to change the Network Packet size in the SSMS Properties

If you said that the connections mostly works but fails for different data is because of the size of the stream of data.