If you compile in HW mode using "SGX_PRERELEASE=1", this applies compiler optimizations "-O2" which exposes a memory bug when releasing unused deposits through backup nodes. This will probably be the result of a silly buffer overflow error/type cast somewhere.
I'll look into this when I have more time!