Parsing error issue on android after successful build using Unreal Engine 5.1.1

Working on:
UE 5.1.1
Android Studio 4.0
SDK 31, 35 and 8 (tested in these)
JDK 1.8.202 and 11.0.17 (tested in these)
NDK 25.1.8937393

The file that I’m working on worked before (not my current system) and I tried many configurations of android studio, sdks, jdks and ndks. Build always seems to work fine with no issues but trying to run it on an android device keeps giving parsing error.

I have tried building this on new UE file and the issue still persists. This image shows the error I get on running a new UE 3rd person template

Let me know if any more information is needed.
Thanks in advance.