hey I can confirm it happens when calling save after delete. Doing the context save after a short delay seems to work for now
Button {
modelContext.delete(occurrence)
dismiss()
Task {
try? await Task.sleep(nanoseconds: 1_000_000_000)
do {
try modelContext.save()
} catch {
print(error.localizedDescription)
}
}
} label: {
Text("Delete Occurence")
}