I use WebSocketProvider from ethers.js lib.
const provider = new ethers.providers.WebSocketProvider(
"wss://speedy-nodes-nyc.moralis.io/somecode/bsc/mainnet/ws"
);
In my code I subscribe to events of one smartcontract, and after couple of events error is raised.
code: -32000,
response: '{"jsonrpc":"2.0","id":40,"error":{"code":-32000,"message":"execution aborted (timeout = 5s)"}}\n'