VS code or in this case VS Codium crashes suddenly when I open a large project or repo.
Turns out, earlyOOM was killing it, since I didnt have swap, so memory was the only factor needed to trigger “out of memory”.

Solution:
Enable swap, this guide could be of help.

If it continues to happen, you need to reduce the aggressiveness of earlyOOM or exclude the problematic app.