XCode 12 crashes in MapView when keyboard shows up

I'm using SwiftUI. I have a MapView and a textField for searches on top of the MapView via ZStack. This worked in XCode 11, but with XCode 12 simulator, when the keyboard shows up, it crashes the app. The error has to do with constraints and Z style. But it works on device.