The error #0010: Get Memory Error means that there is some memory leakage in your Open-AT application. When the TCP segment arrives, eDlib internally dynamically allocates memory to send an acknowledgement to the peer. In case, it is not able to allocate memory it gives #0010 and the module resets.
Please check if there is some memory leakage in your OAT code. Also check for all the pointer references. Do not use very large chunks of memory (for example chunks of 1KB etc).
If you want to save some data, then use the flash memory to temporarily save the data and then use it later. Afterwards, when the application is idle for some time, you can erase the flash.
Open AT Fan.