I had the same problem and it was because iOS 15 seems to not support registering the same class for multiple element kinds. I made subclasses of the original class and registered each one for each kind and the crash fixed.
Topic:
Community
SubTopic:
Apple Developers
Tags: