I realize from the answer to this post that the fallacy in my "proof" of "ZF is inconsistent" was that I was not considering that there are models with non-standard integers. However now I think I developed an actual deduction of $T \vdash \text{Cons} T$ for any sufficiently powerful theory $T$ thus implying by Godel's Second Incompleteness Theorem that $T$ is inconsistent.
As before, let $\text{Prb}_T \sigma$ represent $T \vdash \sigma$ and $\text{Cons} T$ be the sentence $\neg \text{Prb}_T (0=1)$. By the fixed-point lemma we have the existence of a sentence $\sigma$ such that:
$$T \vdash (\sigma \leftrightarrow (\text{Prb}_T \sigma \rightarrow \text{Cons} T))$$
By reflection we have:
$(1) \; T \vdash \text{Prb}_T(\sigma \rightarrow (\text{Prb}_T \sigma \rightarrow \text{Cons} T))$
By formalized modus ponens we have:
$(2) \; T \vdash (\text{Prb}_T \sigma \rightarrow \text{Prb}_T(\text{Prb}_T \sigma \rightarrow \text{Cons} T))$
By formalized modus ponens again we have:
$(3) \; T \vdash (\text{Prb}_T \sigma \rightarrow (\text{Prb}_T \text{Prb}_T \sigma \rightarrow \text{Prb}_T \text{Cons} T))$
Now formalized reflection is $T \vdash (\text{Prb}_T \sigma \rightarrow \text{Prb}_T \text{Prb}_T \sigma)$ so from the last step and sentential logic we have:
$(4) \; T \vdash (\text{Prb}_T \sigma \rightarrow \text{Prb}_T \text{Cons} T))$
Now, Godel's Second Incompleteness Theorem formalized is: $T \vdash (\text{Prb}_T \text{Cons} T \rightarrow \neg \text{Cons} T)$. Since anything follows from a contradiction, we have $T \vdash (\neg \text{Cons} T \rightarrow \tau)$. Replacing $\tau$ with $\text{Cons} T$ and following this chain of implications, line (4) implies:
$(5) \; T \vdash (\text{Prb}_T \sigma \rightarrow \text{Cons} T)$
By our choice of $\sigma$ we now have $T \vdash \sigma$ which by reflection yields $T \vdash \text{Prb}_T \sigma$. From (5) therefore we have $T \vdash \text{Cons} T$.
Where am I going wrong here? The only thing I can think of is that I formalized Godel's Second Incompleteness Theorem incorrectly, but then how is it formalized?