TypeError: undefined is not an object (evaluating 'error.stack.replace')

Hi,
Suddenly we started getting this error only when running it on the expo go app and on the android platform.
Our app works completely fine with expo go on IOS. And also with native builds.

With Error boundry, we are capturing this error stack
“error”: Object {
“column”: 38,
“componentStack”: "
in NavigationContainer (at app.tsx:349)
in Provider (at app.tsx:345)
in RCTView (at View.js:34)
in View (at SafeAreaView.js:41)
in ForwardRef(SafeAreaView) (at app.tsx:344)
in ErrorReporter (at app.tsx:341)
in App (created by ExpoRoot)
in ExpoRoot (at renderApplication.js:45)
in RCTView (at View.js:34)
in View (at AppContainer.js:106)
in RCTView (at View.js:34)
in View (at react-native-root-siblings/index.js:32)
in RootSiblingsWrapper (at AppContainer.js:121)
in RCTView (at View.js:34)
in View (at AppContainer.js:132)
in AppContainer (at renderApplication.js:39)",
“isComponentError”: true,
“line”: 176446,
“sourceURL”: “url/index.bundle?platform=android&dev=true&hot=false&minify=false”,
},

line 176446 in the bundle is
var defaultHandler = ErrorUtils.getGlobalHandler();
ErrorUtils.setGlobalHandler(function (error, isFatal) {
if (react_native_1.Platform.OS === ‘android’) {
error.stack = error.stack.replace(//.*/\d+.\d+.\d+/cached-bundle-experience-/g, ‘https://d1wp6m56sqw74a.cloudfront.net:443/’);
}

It does not seem to be an app error since it works on standalone app + with expo go on IOS. And it was working fine on android too a little while back, this all started suddenly.

Some more warnings
[Unhandled promise rejection: TypeError: undefined is not an object (evaluating ‘error.stack.replace’)]
at node_modules/sentry-expo/build/integrations/managed.js:83:30 in ErrorUtils.setGlobalHandler$argument_0
at node_modules/react-native/Libraries/polyfills/error-guard.js:45:36 in ErrorUtils.reportError
at node_modules/react-native-exception-handler/index.js:18:6 in console.error
at node_modules/@sentry/react/node_modules/@sentry/utils/dist/instrument.js:111:20 in
at node_modules/react/cjs/react.development.js:471:2 in Component.prototype.setState
at node_modules/react-navigation/node_modules/@react-navigation/native/lib/module/createAppContainer.js:157:10 in _defineProperty$argument_2
at node_modules/react-navigation/node_modules/@react-navigation/core/lib/module/getChildNavigation.js:45:13 in actionHelpers.actionName
at src/components/common/components/splashScreen.tsx:65:33 in SplashScreen#componentDidUpdate
at [native code]:null in flushedQueue
at [native code]:null in invokeCallbackAndReturnFlushedQueue

[Unhandled promise rejection: TypeError: undefined is not an object (evaluating ‘error.stack.replace’)]
at node_modules/sentry-expo/build/integrations/managed.js:83:30 in ErrorUtils.setGlobalHandler$argument_0
at node_modules/react-native/Libraries/polyfills/error-guard.js:45:36 in ErrorUtils.reportError
at node_modules/react-native-exception-handler/index.js:18:6 in console.error
at node_modules/@sentry/react/node_modules/@sentry/utils/dist/instrument.js:111:20 in
at [native code]:null in dispatchAction
at node_modules/react-redux/lib/components/connectAdvanced.js:103:34 in checkForUpdates
at node_modules/react-redux/lib/utils/Subscription.js:100:13 in handleChangeWrapper
at [native code]:null in handleChangeWrapper
at node_modules/react-redux/lib/utils/Subscription.js:28:25 in batch$argument_0
at node_modules/react-redux/lib/utils/Subscription.js:24:10 in createListenerCollection
at node_modules/react-redux/lib/utils/Subscription.js:95:2 in
at node_modules/react-redux/lib/utils/Subscription.js:100:13 in handleChangeWrapper
at [native code]:null in handleChangeWrapper
at node_modules/redux/lib/redux.js:304:10 in dispatch
at src/store/global.action.tsx:76:17 in
at src/store/global.action.tsx:67:11 in
at http://192.168.29.204:19000/index.bundle?platform=android&dev=true&hot=false&minify=false:266757:31 in Home
at [native code]:null in performSyncWorkOnRoot
at node_modules/react/cjs/react.development.js:471:2 in Component.prototype.setState
at node_modules/react-navigation/node_modules/@react-navigation/native/lib/module/createAppContainer.js:157:10 in _defineProperty$argument_2
at node_modules/react-navigation/node_modules/@react-navigation/core/lib/module/getChildNavigation.js:45:13 in actionHelpers.actionName
at src/components/common/components/splashScreen.tsx:44:33 in SplashScreen#componentDidMount
at [native code]:null in flushedQueue
at [native code]:null in invokeCallbackAndReturnFlushedQueue

Also it