MongoDB's BSON library calls abort() on malloc failure because they can't be bothered to handle OOM gracefully.
Whenever people are imagining they're going to recover despite OOM in low level components they are tripping. Their recovery strategy is going to blow up too, and then they're going to be in a huge mess - just abort when this happens.