My scenario for iPhone with iOS 16.1.2 is the following: disable orientation lock on the device -> have an app which works only in the portrait mode -> go to login screen -> tap on password field -> keyboard shows up -> rotate the phone 90 degrees (to a landscape orientation) -> tap on passwords on the keyboard (see the screenshot below) -> crash.
Furthermore if we first tap on the password and then rotate to the landscape, then ask for touch id/face id popup will be blinking, until we rotate again to a portrait. Of course to get the error don't let it to read your face ;)
Looks like bunch of apps have this issue - I tried few from the Appstore, e.g. Duolingo. Happens also for login pages in webviews (although it didn't crash for login by fb/google in Duolingo case).
Note that in Crashlytics it will say that system was in the portrait mode, although you rotated the phone to the landscape.
Looks to me like something that Apple has to fix.