Detox Tests Failing in Circle Ci(AppWillTerminateWithError)

Detox Tests are failing due to timeout error. Even though the app is launched it is stuck at splash screen and taking too much time to go to the next screen. Due to this, the detox tests are failing in circle ci.
Facing AppWillTerminateWithError.
messageId: -10000,
type: ‘AppWillTerminateWithError’,
params: [Object]
Before it used to work fine but suddenly facing this issue.