I'm having this exact same issue but can't quite narrow down what is actually causing it. Setting .navigationViewStyle(.stack) on the NavigationView in my code and the code above removes the issue but does prevent me from using a sidebar on iPad.
I also managed to get the issue to occur when showing an alert on the third screen.