I'm not a mathematician either, but I find it hard to believe we could run out of problems in pure mathematics. Pure math is like a game where if you get bored you can invent new rules. Maybe eventually all fields related to applied problems will be settled, and the value of pure mathematics will be relegated to the status of other games like chess and go. But that's so far away from current reality that I can't imagine it happening in the next century at least.