I’ve never done that, exactly, but I’ve done several trips of that length around Europe and South America.
My (general) sanity rules have become these: never stop for less than two nights, always spend four nights in the same place after 2-3 shorter stops, and spend a full week somewhere during the trip.
While this may feel limiting, I’ve found that anything more strenuous has always overwhelmed someone in the group.
Edit: minor schedule adjustments
I’d say: do the opposite! Don’t plan anything, stay no more than two nights at the same place, jump on a train and see where you end up. Then, if you don’t like, just take the next train somewhere else.
I did this twice in my early twenties and it was amazing. I mean, it was absolutely horrible. I slept on bark benches, in Cafés, in train stations, before train stations (until they turned on the sprinklers)… I was picked up by the police because we got lost in a field and more than once I was convinced I’d die. But it was absolutely worth it and both trips became core memories / PTSD trigger.
But seriously, don’t follow this advice if you have a kid and are not an immortal twenty-something.