if (@available(iOS 16.1, *)) {
[self.navigationBar setNeedsLayout];
[self.navigationBar layoutIfNeeded];
}
It can fix this problem.
I found it's Apple's bug because the new Navigation Title in iOS 16 is TitleControl Class.
When you compile and run Xcode 13, it has a delay in updating constraints, It cause LayoutGuide's sosConstrain release(unsafe_unretained), So it caused a crash。
You can call the above two lines of code to let the navigation update the constraint layout of TitleControl immediately.