I would suggest negotiating this arrangement when you're changing jobs. Your existing employer will likely be reluctant to reduce your hours, whereas (if you're any good) a new employer will be happy to have you for half of each week if the alternative is not having you at all. And it needs to be clear that that is the alternative. My current employer made me a couple of good full-time offers, which I declined: "I'm currently only looking for part time work, as I need the time to pursue my personal projects and interests."
Still on the theme of "It's better to have you part-time than not at all", you may be able to negotiate an ongoing part-time position at your existing workplace if you are seriously considering leaving (and thus the alternative is your leaving, and their not having you at all). Be careful about this, though. You want to maintain a good relationship. An ultimatum will do you no good. But if you're genuinely in-good-faith considering leaving, they may consider your offer.
You will probably have to try a number of different companies before you find one that will hire you on those terms. And, as with all bargaining, you need to be able to walk away.
DISCLAIMER: This worked for me the one time I tried it, but that may be complete coincidence.
I spend time learning, doing R&D / experimenting, doing product work, etc. The most fun I have is on the R&D. I've been doing it for 17 years straight and there's nothing else I'd rather be doing, I rarely suffer from exhaustion / burnout (and that's always when somethings fails, rather than feeling tired by the actual work).
This discussion is also going to vary dramatically based on the structure of your current life, including family / job / mood / etc. Adding further to the subjectivity of it.
This is how Drew Wilson, creator of Space Box and many other works is able to achieve his high level of output. He manages his energy, listens to his body and mind, and does what is most suitable and productive knowing such things.
3 hours at 100% followed by 3 hours of leisure followed by 3 hours of 100% work would be 6 hours of 100% focused work. 6 solid hours of work is better than 8 hours of 50% focus (4 hours). Not only is the actual effort put in greater, but so is the focus and engagement which leads to even greater results.
Take a look at Brooks' The Mythical Man Month for data that demonstrates the opposite, at least in programming; I haven't followed the field closely, but education and industrial organization researchers have done similar work in other professions.
I mean officially I was there 37, it was a good week if I was doing real, actual work for 20. Yes, I made up for it by working my tail off when it was needed.
We coders can be absurdly productive for short bursts, or be slow and steady. You can't have massively productive and steady for very long. In your early 20s you have a few years of this, but the more you push it then the more jaded you'll be later.
All said, I expect some loss of productivity is inevitable due to context switching and communication overhead but it isn't necessarily a major loss.
Brooks' book also clearly demonstrates that applying a dumb formula derived from the number of programmers doesn't predict the output, and using such a formula to estimate a project's timeline doesn't positively affect the project's outcome. It's main argument is that programmers added late to a project will actually cause it to take even longer to complete.
Brooks' book is remarkable - a lot of programming lore and culture originates there or is popularized by it. I'd compare it to casablanca or citizen kane rather than dismiss it out of hand.
The easy way to combat this is to have longer timelines for projects, or, if necessary, crunch periods followed by more relaxed recharge periods.
Some problems, to be solved, require intense work.
At 40 hours a week you will hardly feel "burned out".
Someone who works 40 hours, takes regular breaks and keeps a moderate pace, sure. 40 hours of high pace concentrated development work? In the last 17 years of managing development teams, I've had maybe 1-2 people who could sustain that for more than a week or two at the time.
A lot of people's time is filled by very low-productive work such as excessive communication overhead, or fiddling around with low-quality tooling, etc.
I am in my early 60s and for my whole life I limited my work hours to 32 hours per week, even working for large companies. I had lots of time for educational side projects, exercise, extra time with family and friends, and mediation.
My only regret was not perhaps cutting this to less than 30 hours. I did not work Mondays, and every Tuesday morning I was refreshed and enjoyed my work. Leaving about 20% of my salary on the table was a good trade. Some of my bosses did not like this, but when I worked I gave them 100% effort.