Let's compare.
At their age I went to graduate school in math. Which was a longer time commitment, at lower likely salaries, which left me with no real employable skills.
I do not see a failed startup at that age as a worse economic choice than graduate school was for me.