Allocation error handling.