In a certain (consistent) point when my app is running, I consistently get the xcode error message
Terminated due to memory error.
With Xcode 11 it started my project in Debug mode. I am doing some image recording/editing/returning to the user and that is not something you can use in Debug. Once I turned to Release mode, all went well.
Debug
Release