App Crashes after EAS preview build

I was trying to build my app for internal testing. So after running eas build --profile preview. App was built successfully but for some unknown reason App is crashing on startup. We haven’t made any native (ios or android) code changes or no package was updated recently in 2/3 months. running the app with expo run:android works perfectly and we can test the app on simulator or device. App crashes only when built with eas build command.

I would like to remind you that, both the app was running after eas build, few days before. And not any substantial changes has been made on the app that might cause the app to crash.

We currently have 2 apps. 1 is running on SDK43 and another one is on SDK45 . Both the app is facing same issue but running adb logcat returns different message for them.

Logcat of app running on SDK 43

--------- beginning of crash
2022-11-29 14:14:45.440 6683-6779/com.xxxxx.xxx E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
    Process: com.xxxxx.xxx, PID: 6683
    com.facebook.react.common.JavascriptException: ReferenceError: Can't find variable: Buffer, stack:
    <unknown>@983:154260
    i@983:165
    <unknown>@983:330390
    <unknown>@983:340600
    i@983:165
    <unknown>@983:180363
    i@983:165
    <unknown>@983:536979
    i@983:165
    <unknown>@983:76420
    i@983:165
    <unknown>@983:153048
    i@983:165
    <unknown>@983:489735
    i@983:165
    <unknown>@983:118928
    i@983:165
    <unknown>@983:523522
    i@983:165
    <unknown>@983:523462
    i@983:165
    <unknown>@983:961
    <unknown>@983:972
    h@2:1585
    <unknown>@982:39
    h@2:1585
    <unknown>@980:767
    h@2:1585
    <unknown>@947:5621
    h@2:1585
    <unknown>@946:693
    h@2:1585
    <unknown>@945:1975
    h@2:1585
    <unknown>@926:735
    h@2:1585
    <unknown>@469:362
    h@2:1585
    <unknown>@6:57
    h@2:1585
    d@2:958
    global code@2502:3
    
        at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:83)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
        at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:151)
        at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
        at android.os.Handler.handleCallback(Handler.java:883)
        at android.os.Handler.dispatchMessage(Handler.java:100)
        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
        at android.os.Looper.loop(Looper.java:214)
        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
        at java.lang.Thread.run(Thread.java:919)
2022-11-29 14:14:45.442 380-711/system_process W/ActivityTaskManager:   Force finishing activity com.xxxxx.xxx/.MainActivity
2022-11-29 14:14:45.449 6683-6779/com.xxxxx.xxx I/Process: Sending signal. PID: 6683 SIG: 9
2022-11-29 14:14:45.531 380-476/system_process W/InputDispatcher: channel '79b07db com.xxxxx.xxx/com.xxxxx.xxx.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
2022-11-29 14:14:45.531 380-476/system_process E/InputDispatcher: channel '79b07db com.xxxxx.xxx/com.xxxxx.xxx.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
2022-11-29 14:14:45.538 380-711/system_process I/WindowManager: WIN DEATH: Window{79b07db u0 com.xxxxx.xxx/com.xxxxx.xxx.MainActivity}
2022-11-29 14:14:45.538 380-711/system_process W/InputDispatcher: Attempted to unregister already unregistered input channel '79b07db com.xxxxx.xxx/com.xxxxx.xxx.MainActivity (server)'
2022-11-29 14:14:45.542 380-1152/system_process I/ActivityManager: Process com.xxxxx.xxx (pid 6683) has died: vis+99 TOP 

Logcat of app running on SDK 45

--------- beginning of crash
2022-11-29 15:55:02.703 7495-7495/com.xxxxx.xxx E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.xxxxx.xxx, PID: 7495
    java.lang.AssertionError: The embedded manifest is invalid or could not be read. Make sure you have configured expo-updates correctly in android/app/build.gradle. app.manifest
        at expo.modules.updates.manifest.EmbeddedManifest.get(EmbeddedManifest.kt:31)
        at expo.modules.updates.loader.LoaderTask.launchFallbackUpdateFromDisk(LoaderTask.kt:238)
        at expo.modules.updates.loader.LoaderTask.start(LoaderTask.kt:99)
        at expo.modules.updates.UpdatesController.start(UpdatesController.kt:290)
        at expo.modules.updates.UpdatesController$Companion.initialize(UpdatesController.kt:464)
        at expo.modules.updates.UpdatesPackage$createReactNativeHostHandlers$handler$1.onWillCreateReactInstanceManager(UpdatesPackage.kt:41)
        at expo.modules.ReactNativeHostWrapperBase.createReactInstanceManager(ReactNativeHostWrapperBase.kt:28)
        at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:42)
        at com.xxxxx.xxx.MainApplication.onCreate(MainApplication.java:68)
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1182)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6460)
        at android.app.ActivityThread.access$1300(ActivityThread.java:219)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7356)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
2022-11-29 15:55:02.706 380-398/system_process W/ActivityTaskManager:   Force finishing activity com.xxxxx.xxx/.MainActivity
2022-11-29 15:55:02.711 7495-7495/com.xxxxx.xxx I/Process: Sending signal. PID: 7495 SIG: 9
2022-11-29 15:55:02.794 380-1152/system_process I/ActivityManager: Process com.xxxxx.xxx (pid 7495) has died: vis+99 TOP 
2022-11-29 15:55:02.966 203-203/? E/Layer: [Surface(name=AppWindowToken{add6a78 token=Token{746cfdb ActivityRecord{b78b0ea u0 com.xxxxx.xxx/.MainActivity t41}}})/@0xdbc61a8 - animation-leash#0] No local sync point found
2022-11-29 15:55:03.210 380-402/system_process W/ActivityTaskManager: Activity top resumed state loss timeout for ActivityRecord{b78b0ea u0 com.xxxxx.xxx/.MainActivity t-1 f}