Not all maths problems are maths for the sake of maths.
Two of the unsolved milleneum problems, P vs NP and the Yang Mills existence both have important real world consequences, for example P vs NP in cryptography and Yang Mills in the standard model.
AI has already had a good go at P vs NP by (allegedly) solving the exponential time hypothesis.
I guess the problem is that a lot of complex problems (such as Fermats Theorem) mathematicians have to solve lots of problems in order to solve the main one. In doing so they open up new areas of maths and get new ideas.
The question for me is twofold. One is whether or not in solving a problem AI actually invents new maths/ideas to solve it, or whether it just lumps together existing maths in a new way.
The second issue is whether humans can actually examine the proofs and gain insights from them. For example I think Fermat was about 2 million lines of maths code in lean. If Riemann is similar then it is not clear that it will be easy to unravel the code and gain an intuitive human understanding, even if there is a natural language proof available.
It would be interesting to see what kind of proof AI would come up with for say Fermat if it was limited to the same tools Wiles had before he proved it and was asked to prove it, whether the resulting proof (if it could create one) would be of a similar size / complexity and whether it would use the same techniques.
Of course, the "proof" could always end up relying on a bug/exploit in the Lean compiler or a false statement of the problem (probably unlikely and easily checkable).