Print error message when output buffer allocation fails