Memory error since update to 1.17.1

Updated to the latest version yesterday however now when I run “sls deploy” which worked fine before to create a DynamoDB table I am getting a memory error:

Error: ENOMEM: not enough memory

In this file:

node_modules/lodash/fp/sum.js

Running TOP I could see available memory in my VM dipping under 100k so increased from 2GB to 4GB but it has made no difference.

Your Environment Information ---------------------------
Operating System: linux
Node Version: 12.16.1
Framework Version: 1.71.1 (standalone)
Plugin Version: 3.6.12
SDK Version: 2.3.0
Components Version: 2.30.10

Any help appreciated.