We're seeing the same thing in a SwiftUI portion of our app. It seems this started showing up with iOS 18.1.0. Unfortunately, we haven't been able to reproduce it.
0 CoreFoundation 0x827cc __exceptionPreprocess
1 libobjc.A.dylib 0x172e4 objc_exception_throw
2 Foundation 0x80f8d8 _userInfoForFileAndLine
3 UIKitCore 0xa617e8 -[UIPopoverPresentationController _sendDelegateWillRepositionToRect]
4 UIKitCore 0xa61fd0 -[UIPopoverPresentationController containerViewWillLayoutSubviews]
5 UIKitCore 0xd414 -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
6 QuartzCore 0x78c28 CA::Layer::layout_if_needed(CA::Transaction*)
7 UIKitCore 0x50138 -[UIView(Hierarchy) layoutBelowIfNeeded]
8 SwiftUI 0xc799f4 specialized PopoverPresentationDelegate.updateAnchor(_:presentationController:)
9 SwiftUI 0xc72b08 closure #1 in UIKitInspectorV3Bridge.updateAnchor()
10 SwiftUICore 0x1f1308 partial apply for thunk for @escaping @callee_guaranteed () -> ()
11 SwiftUICore 0x4a5d3c static Update.dispatchActions()
12 SwiftUICore 0x4a520c static Update.end()
13 SwiftUICore 0x4a5fd8 closure #1 in static Update.ensure<A>(_:)
14 SwiftUICore 0x4a4dd4 static Update.ensure<A>(_:)
15 SwiftUI 0xc75790 UIKitInspectorV3Bridge.popoverSource(for:)
16 SwiftUI 0xc7a84c specialized PopoverPresentationDelegate.popoverPresentationController(_:willRepositionPopoverTo:in:)
17 SwiftUI 0xc75af0 @objc PopoverPresentationDelegate.popoverPresentationController(_:willRepositionPopoverTo:in:)
18 UIKitCore 0xa6185c -[UIPopoverPresentationController _sendDelegateWillRepositionToRect]
19 UIKitCore 0xa61b10 __86-[UIPopoverPresentationController viewWillTransitionToSize:withTransitionCoordinator:]_block_invoke
20 UIKitCore 0xb1c3ac __UIVIEWCONTROLLERTRANSITIONCOORDINATOR_IS_EXECUTING_ALONGSIDE_ANIMATION_BLOCK__
21 UIKitCore 0x2e3648 -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:]
22 UIKitCore 0x2e33d0 -[_UIViewControllerTransitionContext _runAlongsideCompletions]
23 UIKitCore 0x2e31a0 -[_UIViewControllerTransitionContext completeTransition:]
24 UIKitCore 0x1762b8 __58-[_UIWindowRotationAnimationController animateTransition:]_block_invoke_5
25 UIKitCore 0x175b78 +[UIView _performBlockDelayingTriggeringResponderEvents:forScene:]
26 UIKitCore 0x2e40f8 __58-[_UIWindowRotationAnimationController animateTransition:]_block_invoke_4
27 UIKitCore 0x7bfb0 __UIVIEW_IS_EXECUTING_ANIMATION_COMPLETION_BLOCK__
28 UIKitCore 0x12ab88 -[UIViewAnimationBlockDelegate _sendDeferredCompletion:]
29 libdispatch.dylib 0x2370 _dispatch_call_block_and_release
30 libdispatch.dylib 0x40d0 _dispatch_client_callout
31 libdispatch.dylib 0x129e0 _dispatch_main_queue_drain
32 libdispatch.dylib 0x125fc _dispatch_main_queue_callback_4CF
33 CoreFoundation 0x56204 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
34 CoreFoundation 0x53440 __CFRunLoopRun
35 CoreFoundation 0x52830 CFRunLoopRunSpecific
36 GraphicsServices 0x11c4 GSEventRunModal
37 UIKitCore 0x3d2eb0 -[UIApplication _run]
38 UIKitCore 0x4815b4 UIApplicationMain
39 Takedown 0x18cbac main + 43 (tWrestlingAppDelegate.swift:43)
40 ??? 0x1abda6ec8 (Missing)