Repository: node
Issue: node(86829,0x2273ac1c0) malloc: Incorrect checksum for freed object 0x15d053a00: probably modified after being freed. Corrupt value: 0x2010102a6068230 node(86829,0x2273ac1c0) malloc: *** set a breakpoint in malloc_error_break to debug
Labels: macos

### Version

v16.16.0

### Platform

Darwin 192.168.111.100 22.0.0 Darwin Kernel Version 22.0.0: Tue Jun 28 20:48:02 PDT 2022; root:xnu-8792.0.134.131.2~1/RELEASE_ARM64_T8103 arm64

### Subsystem

_No response_

### What steps will reproduce the bug?

Using Macos 13 Ventura beta 3 and nodejs breaks, npm and yarn install, a lot of commands when working with React Native fails

like this one:
```
#
# Fatal error in , line 0
# Check failed: op->IsImmediate().
#
#
#
#FailureMessage Object: 0x170bba258
 1: 0x100b6bff4 node::NodePlatform::GetStackTracePrinter()::$_3::__invoke() [/Users/truongnguyen/.nvm/versions/node/v16.16.0/bin/node]
 2: 0x10190ddd0 V8_Fatal(char const*, ...) [/Users/truongnguyen/.nvm/versions/node/v16.16.0/bin/node]
 3: 0x10192e9d0 v8::internal::compiler::CodeGenerator::TranslateFrameStateDescriptorOperands(v8::internal::compiler::FrameStateDescriptor*, v8::internal::compiler::InstructionOperandIterator*) [/Users/truongnguyen/.nvm/versions/node/v16.16.0/bin/node]
 4: 0x10192ebf4 v8::internal::compiler::CodeGenerator::BuildTranslationForFrameStateDescriptor(v8::internal::compiler::FrameStateDescriptor*, v8::internal::compiler::InstructionOperandIterator*, v8::internal::compiler::OutputFrameStateCombine) [/Users/truongnguyen/.nvm/versions/node/v16.16.0/bin/node]
 5: 0x10192ea9c v8::internal::compiler::CodeGenerator::BuildTranslationForFrameStateDescriptor(v8::internal::compiler::FrameStateDescriptor*, v8::internal::compiler::InstructionOperandIterator*, v8::internal::compiler::OutputFrameStateCombine) [/Users/truongnguyen/.nvm/versions/node/v16.16.0/bin/node]
 6: 0x10192ea9c v8::internal::compiler::CodeGenerator::BuildTranslationForFrameStateDescriptor(v8::internal::compiler::FrameStateDescriptor*, v8::internal::compiler::InstructionOperandIterator*, v8::internal::compiler::OutputFrameStateCombine) [/Users/truongnguyen/.nvm/versions/node/v16.16.0/bin/node]
 7: 0x10192e0a0 v8::internal::compiler::CodeGenerator::BuildTranslation(v8::internal::compiler::Instruction*, int, unsigned long, unsigned long, v8::internal::compiler::OutputFrameStateCombine) [/Users/truongnguyen/.nvm/versions/node/v16.16.0/bin/node]
 8: 0x1012f1d34 v8::internal::compiler::CodeGenerator::AssembleArchInstruction(v8::internal::compiler::Instruction*) [/Users/truongnguyen/.nvm/versions/node/v16.16.0/bin/node]
 9: 0x10192d434 v8::internal::compiler::CodeGenerator::AssembleInstruction(int, v8::internal::compiler::InstructionBlock const*) [/Users/truongnguyen/.nvm/versions/node/v16.16.0/bin/node]
10: 0x10192bb44 v8::internal::compiler::CodeGenerator::AssembleCode() [/Users/truongnguyen/.nvm/versions/node/v16.16.0/bin/node]
11: 0x101acabac v8::internal::compiler::PipelineImpl::AssembleCode(v8::internal::compiler::Linkage*) [/Users/truongnguyen/.nvm/versions/node/v16.16.0/bin/node]
12: 0x101ac9d84 v8::internal::compiler::PipelineCompilationJob::ExecuteJobImpl(v8::internal::RuntimeCallStats*, v8::internal::LocalIsolate*) [/Users/truongnguyen/.nvm/versions/node/v16.16.0/bin/node]
13: 0x100cf520c v8::internal::OptimizedCompilationJob::ExecuteJob(v8::internal::RuntimeCallStats*, v8::internal::LocalIsolate*) [/Users/truongnguyen/.nvm/versions/node/v16.16.0/bin/node]
14: 0x100d18e04 v8::internal::OptimizingCompileDispatcher::CompileNext(v8::internal::OptimizedCompilationJob*, v8::internal::LocalIsolate*) [/Users/truongnguyen/.nvm/versions/node/v16.16.0/bin/node]
15: 0x100d19a3c v8::internal::OptimizingCompileDispatcher::CompileTask::RunInternal() [/Users/truongnguyen/.nvm/versions/node/v16.16.0/bin/node]
16: 0x100b688c4 node::(anonymous namespace)::PlatformWorkerThread(void*) [/Users/truongnguyen/.nvm/versions/node/v16.16.0/bin/node]
17: 0x18882f06c _pthread_start [/usr/lib/system/libsystem_pthread.dylib]
18: 0x188829e2c thread_start [/usr/lib/system/libsystem_pthread.dylib]
[1]    36594 trace trap  eas build -p android --profile production
```

### How often does it reproduce? Is there a required condition?

Always, on macOS 13 Ventura

I am not getting any issues when using the previous version of Mac (macOS 12)

### What is the expected behavior?

Nodejs and all JS ecosystem running via Node should work

### What do you see instead?

this error I got when run `npm run start`

```
node(86829,0x2273ac1c0) malloc: Incorrect checksum for freed object 0x15d053a00: probably modified after being freed.
Corrupt value: 0x2010102a6068230
node(86829,0x2273ac1c0) malloc: *** set a breakpoint in malloc_error_break to debug
```

### Additional information

_No response_