zero_to_err_ptr: handle parse errors better