I'm also facing a somewhat similar issue - at least as far as the error message is concerned.
https://feedbackassistant.apple.com/feedback/13208223
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: