Im having the same issue..I delete an object in ios 18 on my physical device it crashes with :
SwiftData/BackingData.swift:251: Fatal error: Context is missing for Optional(SwiftData.PersistentIdentifier(id: SwiftData.PersistentIdentifier.ID(url: x-coredata://92F8A7FF-1C0A-4099-8654-BCE97E36325D/ExerciseSession/p19), implementation: SwiftData.PersistentIdentifierImplementation))
when I test the same thing on ios17 in a simulator and physical divice it works perfectly fine. Im inclined to agree that this is a swiftData bug in ios18