No, there is no contradiction here. (I'm rephrasing Stella Biderman's answer above, but I think this might be slightly simpler.)
EDIT: based on your recent post, I think there is a bit of a confusion regarding what Godel actually proved; the following addresses this.
Godel proved (among other things, but let's focus on these for now) two important statements:
$(*)$ "If $T$ is a reasonable consistent theory, then $T$ is incomplete."
$(**)_{PA}$ "PA is incomplete." (OK fine, he actually talked about a different system, but ignore that for now.) I'm writing this with the subscript "PA" since we can also consider $(**)_{ZFC}$ = "ZFC is incomplete," etc.
It is often said that "Godel's incompleteness theorem is provable in PA." This is true only of $(*)$ - the proof of $(**)_{PA}$, unsurprisingly, takes place in a stronger theory, namely one which can prove the consistency of PA.
Similarly, ZFC proves $(*)$ - and so ZFC proves in particular "If ZFC is consistent, then ZFC is incomplete" - but (assuming ZFC is consistent!) ZFC doesn't prove $(**)_{ZFC}$ since ZFC doesn't prove "ZFC is consistent."
Indeed, Godel's second incompleteness theorem is exactly the observation that no consistent reasonable theory $T$ can prove $(**)_T$, since otherwise we'd have a contradiction.
I think this is ultimately stemming from a misphrasing of a special case of Godel's incompleteness theorem (the case when the theory is ZFC in particular). So let's go back to the precise statement of the incompleteness theorem. It states:
If $T$ is a computably axiomatizable, sufficiently strong theory which is consistent, then $T$ does not prove its own consistency.
That bolded part is going to be the key here; essentially, it means that we can't get something for free, and it prevents the contradiction you anticipate from arising.
Now ZFC does indeed prove Godel's theorem, but we need to be careful to say this precisely correctly. What ZFC proves - taking $T$=ZFC - is the following:
If ZFC is consistent, then ZFC does not prove its own consistency.
(ZFC easily proves that ZFC is computably axiomatizable and sufficiently strong, so these hypotheses aren't relevant here.)
Now ZFC further proves:
If ZFC does not prove its own consistency, then ZFC is consistent
simply because ZFC proves that if ZFC were inconsistent then ZFC would prove everything. So putting these together, ZFC proves the statement
If ZFC is consistent, then ZFC is consistent.
... Which isn't very surprising. The point is that that consistency hypothesis in the incompleteness theorem can't be avoided, so no contradiction actually appears (since the only theories which can use Godel to deduce an incompleteness in ZFC are those which already prove that ZFC is consistent).