I had that early in my software career. I've enjoyed programming since I was a kid, but after getting my first fulltime job I started questioning if I even enjoyed it.
Turned out I was just getting burned out from the feature factory work I was doing. I took a little break and did some fun hobby projects, and I instantly fell in love with programming again. I think making a programming career sustainable requires that we do work we actually enjoy.
A few decades later, I know what I do and don't want in a workplace. For me that means: No corporate gigs, no java, no barnacle coworkers and no jira. Yes to smart coworkers, projects I care about, technically interesting work, small teams, and a culture of responsibility taking and ownership.