Stop raising ERR_R_MALLOC_FAILURE in most places