I think there's a bug with SwiftUI's NavigationStack where a view with navigationBarTitleDisplayMode(.large) presents a new view with NavigationLink and the new view has navigationBarTitleDisplayMode(.inline). When you go back the navigation bar doesn't animate correctly.
What happens is that the previous view in the stack will animate to .inline and then twitch to .large once the transition is complete.
The issue is described with a video here: https://www.reddit.com/r/SwiftUI/comments/yq6jkb/navigationbartitle_jumps_when_returning_from/