This looks like an issue with some aspect of the #Preview macro implementation.
I replaced it with the old-style preview syntax and bypassed this issue:
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
.modelContainer(previewContainer)
}
}