> the Lean proof of the Riemann Hypothesis depends on Lean's type theory, not ZFC's consistency.
I believe it depends on Lean's type theory which itself depends on ZFC and that if ZFC were inconsistent then Lean's type theory would also be inconsistent.
> It's an explicit machine-checked proof term, not a non-constructive consequence of logical explosion.
It is possible to make "constructive proofs" that make sure never to use an argument saying "not-foo is false, therefore foo must be true". Such a proof really would survive even if ZFC were inconsistent (at least inconsistent in certain ways). However, I don't believe this proof of the Reimann Hypothesis is constructive. (I haven't read the proof, but if it were, that would be remarkable and people would be discussing it: most proofs are not constructive.)
But in that case proofs could be recovered if you reformulate them in some restricted theory that is not inconsistent - most proofs in math does not need full power of ZFC. For example the mentioned Euclid's proof could be proven just in PA.