Got the same issue here. The funniest thing is that I have a very similar model with the error one works pretty well. It looks like SwiftData for now is really buggy and error-prone...
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: