When generating signed bundle in Android Studio I receive a maximum call stack size exceeded

I receive the following error in Android Studio when trying to create a signed release bundle. The error as stated below derives from a node-module, react-native-svg.

ERROR in Android Studio:

> Task :app:bundleReleaseJsAndAssets FAILED
    error node_modules/react-native-svg/lib/extract/transform.js: /Volumes/{name}/{appName}/node_modules/react-native-svg/lib/extract/transform.js: Maximum call stack size exceeded. Run CLI with --verbose flag for more details.
    RangeError: /Volumes/{name}/{appName}/node_modules/react-native-svg/lib/extract/transform.js: Maximum call stack size exceeded
        at String.split (<anonymous>)
        at NodePath.get (/Volumes/{name}/appName}/node_modules/@react-native-community/cli/node_modules/@babel/traverse/lib/path/family.js:183:21)
        at NodePath._resolve (/Volumes/{name}/{appName}/node_modules/@react-native-community/cli/node_modules/@babel/traverse/lib/path/introspection.js:316:14)
        at NodePath.resolve (/Volumes/{name}/{appName}/node_modules/@react-native-community/cli/node_modules/@babel/traverse/lib/path/introspection.js:307:15)
        at /Volumes/{name}/{appName}/node_modules/@react-native-community/cli/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js:72:27
        at Array.filter (<anonymous>)
        at getConstantViolationsBefore (/Volumes/{name}/{appName}/node_modules/@react-native-community/cli/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js:71:21)
        at getTypeAnnotationBindingConstantViolations (/Volumes/{name}/{appName}/node_modules/@react-native-community/cli/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js:36:28)
        at NodePath._default (/Volumes/{name}/{appName}/node_modules/@react-native-community/cli/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js:22:14)
  • Android Gradle Plugin version: 3.5.3
  • Gradle Version: 6.2
  • idea.properities: idea.case.sensitive.fs=true

System info

  • MacBook Pro 2019 macOS Catalina V10.15.7
  • volume fs: case-sensitive