Given such a massive proof, is there any possibility of accidental tautology inadvertently hiding inside the mess to the effect of "Assume A is true. A million lines later: therefore A is true"?
That there are tautology's in the billions of line? Yes, absolutely. There's every chance that the proof isn't efficient and includes lines that can be removed.
That the end result relies on those tautologies? No. All lean would derive from doing that is "a implies a" (which it would let you introduce directly) and not the statement "a". This is what computers are perfect at, keeping millions of different records straight and not accidentally forgetting the first half of the implication.
Of course it's possible that the proof is flawed, in that or numerous other ways. That's why it's being formally verified in multiple independent ways.
Lean keeps track of any such assumptions when constructing the proof term, and would not allow them to line up with an unconditional statement like RH.