Exit code -1073740791 is the decimal form of Windows error 0xC0000409, STATUS_STACK_BUFFER_OVERRUN, which means native code wrote past the end of a buffer on the stack, and Windows stopped the process immediately to protect the system. In Minecraft the usual cause family is a faulty or incompatible mod, a graphics driver, or an overlay or audio tool that hooks into the game, such as NVIDIA Ansel or Nahimic audio.
If the crash report or log names a mod, a driver file, or an overlay, that name is the cause, so remove or update that one thing first. If the crash only happens with a specific mod pack, update the pack, since a single outdated mod inside it is the usual culprit.
What is a stack buffer overrun? It means a program wrote more data than a memory buffer could hold, spilling into nearby memory. Windows detects it and stops the program at once, which is why the game closes with no warning.
Is this crash caused by too little RAM? Not directly. This code is about a native code error, not about running out of memory. Low RAM causes a different error, java.lang.OutOfMemoryError, so do not raise the RAM allocation to fix this one.
Minecraft exit code -1073741819 · Minecraft exit code 1 · Minecraft out of memory error · Minecraft exit code 255