Error :

FAILURE: Build completed with 2 failures. 

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:configureCMakeDebug[arm64-v8a]'.
> [CXX1409] [project folder]/android/app/.cxx/Debug/l1z3g258/arm64-v8a/android_gradle_build.json debug|arm64-v8a : expected buildFiles file '[project folder]/node_modules/react-native-screens/android/src/main/jni/CMakeLists.txt' to exist

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

Solution:

Remove the android/app/.cxx folder

Alternatively running

git clean -idx

will also delete the folder and other stale files if any