Mathematics is often expressed in language, That language us usually a mix of a human natural language English/French/German/etc plus symbolic extensions, and that is very poorly typed.
In the recent failed proof of P!=NP, the flaw was a type error:
https://cstheory.stackexchange.com/questions/38803/is-norber...
Type errors are rather common in math proofs that end up retracted.
But it's hard to call them type errors, because it's not like a computer program where the typechecker detected the collision or failed in some way: the proofs make very little mention of types at all, and it's up to the readers to apply a type-system from their own heads.