In Pure maths, people are not generally solving problems because of some pressing practical need, it's purely out of intellectual interest, and if we're lucky there's some immediate practical application. More often, the knowledge sits in pure form for a while and years down the road some new invention, or practical consideration, or other field finds a useful application.
Just like literature and visual art, it serves an important epistemic and social function even in spite of its immediate lack of raw practicality.
I think this sort of progress, compounded over the next N years will serve to cleanly split useful math from the ego driven math you speak of.
Certainly there are enormously impactful pure math results yet to be found, but we have no idea really which directions to pursue.
I wonder if this is going to look like the chemistry-alchemy split in the rear view mirror.
There are plenty people in every discipline that prioritize their ego over measurable progress towards a stated goal - even less so a community focused goal.
Humans aren't that original. We just reinvent stuff we used to do to suit the present day, with our own twist.