Incredible find @funcmakerDan, thank you.
Removing @Environment(.modelContext) fixed it for me as well, on iOS 17.4 and visionOS 1.1, and Sonoma 14.4.
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: