A command like
Cannot possibly succeed when a limited amount of free memory is available.
However, both optimized and debug builds will immediately commence executing the command and attempt memory allocation, thereby quickly and needlessly filling up all available memory, leading to OOM termination by the kernel of either this process or any other running on the server, and all consequences thereof.
This feature request for a simple pre-flight check. Pseudo code: