Sorry I meant PhD and I specified PhD elsewhere in the comments.
If there really is demand, math departments will find a way to adapt. If there is seriously no way to train new mathematicians without open problems, then I don’t see how they would be equipped to add value in this world. But I don’t think that’s the case, they will figure it out.
I think you and your sibling commenter miss that doing these advanced jobs is not like flipping burgers, or even like doing financial research. There are problems that may not have fully-specified solutions, and the best way we know to train and identify those who can solve unspecified problems happens to be asking advanced-degree candidates to solve unspecified problems.
That is a reason why reasonable countries fund research, even when the research isn't going to yield obvious benefits on its own merit.