Huge driving hazard

Samsung phones (at least S8 and S23) turn off the screen of the phone automatically a few seconds after starting a phone call, even when the device is not being held at all.

This makes it so that when we are driving and using Google Maps, if we receive a call, the screen goes off completely after less than a minute and when the call is ended the screen remains off so we lose access to the map and directions.

The only way to return to the maps screen is by manually turning on the screen again and bypassing whatever locking method you have set (pin, fingerprint, etc.), which is a problem while driving.

I cannot fathom how such a huge issue made it through testing and how after several years of it being reported it has not been resolved.