These symbols are no longer valid on macOS and will fail builds if the `NDEBUG` symbol is defined, as it is now in default build settings for all react-native projects since release of react-native 0.76
This same change was applied upstream but never released, and it appears it has not been applied here
https://github.com/google/leveldb/pull/965#issuecomment-2436371816