SwiftData and SharePlay

Is it possible to use a SwiftData model as the model for SharePlay? My app is crashing when the app receives data from the Messenger