<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
This shouldn't be used. This opt out is made for users that already have an application that is made with non compulsory edge to edge in mind. For developing apps for Android 15+, you only need enableEdgeToEdge() as it will enforce the same behavior in lower Android versions ensuring backward compatibility.
If for some reason you're still using optOut you need to remove that and work to make applications edge to edge.
So overall: You don't need windowOptOutEdgeToEdgeEnforcement=false, you don't need it set at all. By default it will be false for android 15+ and true for android 14 and below. So don't rely on this flag. Leave it default. You need enableEdgeToEdge(). Put this on all your activities to ensure consistent behavior across all android versions.
I hope this answers your question.