Fail with AddressSpaceExhausted exception only for memory related issues, throw a runtime_error otherwise.
Fail with AddressSpaceExhausted exception only for memory related issues, throw a runtime_error otherwise.

realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core