Updating to Expo SDK 53 and using the default plugin react-native-edge-to-edge the problem was solved.
Peer dependencies are necessary:
"react-native-safe-area-context": "5.4.0",