Wow, we actually have very similar trajectories. Except I'm still at the point of doing part-time work + coding side-projects/startups on the side.
I agree that the too much freedom can be disorienting. If you don't mind me asking, how did you end up deciding that getting a job again was the right move? How did that compare to keeping doing 20hr/wk contract work and then spending the rest of your time doing non-coding/non-startup stuff if that's what was burning you out?