This is the right concern. The focus should not be on the implications of AI capabilities on the careers of mathematicians but rather the implications on humanity.
I have signed a letter from 42 fellows and foreign members of the Royal Society to Paul Nurse, the president of the society, concerning the need to treat the serious risks of AI as an emergency.