Handle BIGNUM allocation failure