Speaking to someone who has been training pilots for the past 4 decades, her advice was: leave uni with a degree and CPL around age 22. "A real degree, not an aviation one."
Paying for both a real degree and CPL... not cheap, but sounds like reasonable advice to me.