Configuring CoreData to CloudKit private database issues

Inside the core data database, I created new private configuration. Then Created a new entity which got added to default configuration. Dragged the new entity to the newly created private configuration. It crashes. Am I doing this right? If so is it Xcode 13.3.1 bug ? and should I upgrade?

Once I get past this issue, will the below given load persistent stores code export/synchronize the new entity from core data private configuration to cloudkit private database?

 container.loadPersistentStores(completionHandler: { (loadedStoreDescription, error) in
      if let loadError = error as NSError? {
        fatalError("###\(#function): Failed to load persistent stores:\(loadError)")
      } else if let cloudKitContainerOptions = loadedStoreDescription.cloudKitContainerOptions {
        if #available(iOS 14.0, *) {
          if .public == loadedStoreDescription.cloudKitContainerOptions?.databaseScope {
            self._publicPersistentStore = container.persistentStoreCoordinator.persistentStore(for: loadedStoreDescription.url!)
          } else if .private == loadedStoreDescription.cloudKitContainerOptions?.databaseScope {
            self._privatePersistentStore = container.persistentStoreCoordinator.persistentStore(for: loadedStoreDescription.url!)
          } 
        } else {
          // Fallback on earlier versions
        }
      }
Configuring CoreData to CloudKit private database issues
 
 
Q