Math is a human invention. Some of it's tenets are considered fundamental truth. Einstein said (with tongue in cheek) that he would feel sorry for "the Lord" (supposed indirect generator of math) if his (Albert's) formulae, thought-experiment derived would be found to be valid. No mistakes here, but what he considered his biggest mistakes are now considered validated by experiments ( universal constant, accelerated spavetime expansion)
According to his comment, A mathematitian could be wrong, even the Creator could be wrong. mathematics could not. of course, he could have been wrong about that.