I suspect there's considerable variance.
There are many factors at play here.
How bad is it? What is the cause? How long does it take to address the cause? Ie if the cause is not having meaning, how long does it take to find something meaningful? If it is a bad community, how long does it take to find people you like?
* Suicide is one terminal option.
* There's a fair history of people who've suffered burnout, or equivalent earlier terms (nervous breakdown, nervous exhaustion, possibly also PTSD and its antecedants -- combat fatigue and shell shock), for the rest of their natural lives.
* Others who've taken multi-year / multi-decadal breaks, or transitioned to other careers or professions.
Again: I suspect considerable variance.