context: [ENG-2139](https://linear.app/comm/issue/ENG-2139/make-sure-we-clear-queue-of-queries-before-deleting-database)
This code allows handling exceptions generated by canceling tasks (for now only when `clearSensitiveData` is called.
In the future maybe it will be cleaner and better to rely on the error code to avoid parsing the message but for now it's not possible, rejecting the promise allows passing only string [link](https://github.com/facebook/react-native/blob/main/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleUtils.cpp#L73);