Unreal engine 5 anroid game doesn't work on Android 14+

If it is possible - use the newer engine. Here is what you can find on the page related to android for UE 5.4:

After August 31, 2024, Google Play Store requires apps to target Android 14, which requires API level 34. To publish new apps on the Google Play Store after this date, you must update to UE 5.4.4 for target SDK 34 support. Apps built with previous versions of UE will no longer submit successfully. For more information, see the Android documentation on Google Play’s target API level requirement.