My UITextView was crashing too on iOS 16.1, and accessing layoutManager fixed the issue.
The error code was a bit different, but mysterious too:
Thread 1: "-[<NSTextContentStorage: 0x2818b1c70> locationFromLocation:withOffset:] received invalid location (null)"
Thank you for the workaround!
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: