It depends on what you're going for. There's some risk with projects, but also more reward.
Being marketable requires staying up to date, but it's a hamster wheel: You stay fit, but you aren't moving.
With projects, you can always pivot. Nothing is truly wasted unless you throw in the towel on being an entrepreneur.
For me, I started a system integration platform 5 years ago. It's made 5 figures over the years. Nothing spectacular, and I'm 30 now, so even if it does take off, I'm not going to be the early success story many people like. But it's taught me lessons that are priceless. I have hands-on experience with sales, development, and marketing. I have sales contacts. I have code that can be repurposed into new products.
If it doesn't reach $x within y months, I may start a new business with a new model. But that's the beauty of it: You can do that. You don't have that option with lottery tickets.