This exception is new in iOS 17, and occurs when the same UINavigationItem has been added to two different UINavigationBars. Prior to iOS 17 this would have most likely manifested as a hang.
UINavigationItem
UINavigationBar