Remove workaround for initialize managed object context to handle "nil is not a legal persistent store coordinator for MQTTFLow" This is mostly caused by concurrency issue. One thread is initializing the persistent store and other is accessing it.
Make sure to run connect async in serial queue to avoid this issue