The solution as suggested by @workingdogsupportUkraine and confirmed by Apple is to make the relationships optional.
Like this:
@Model
class Model2 {
var name: String
var model1: Model1?
...
}
@Model
class Model3 {
var name: String
var model2: Model2?
...
}