THRIFT-5769: fix invalid size error on large messages

Client: nodejs
3 files changed