ie why can’t Blender code gracefully withdraw an operation when a memory allocation returns a nil?
The short answer is that it’s probably not that simple of an issue.
The long answer is that the reason for the allocation failure is unknowable and that such a situation is not easily recoverable (if at all).
That’s the ‘long’ answer!? What’s the short answer: “Because.”?