[Bug 1118] Added INVALID_ARG_SIZE for when trying to set local memory size to zero