Abort if array allocation fails