CoreData -[NSManagedObjectContext _disposeObjects:count:notifyParent:] Crashed: NSManagedObjectContext 0x281082080 EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000010

We are getting this crash in CoreData when we started using XCode 12.2. There is no change in code. So to fix this, we wrapped managedObjectContext of privateQueueConcurrencyType with performBlockAndWait as in apple documentation for core data concurrency. After this change app become slow and some visible lagging is user actions like entering text is observed. What can be done to improve the performance here? Is it correct to wrap context fetch/update/save call with performBlockAndWait?
CoreData -[NSManagedObjectContext _disposeObjects:count:notifyParent:] Crashed: NSManagedObjectContext 0x281082080 EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000010
 
 
Q