Sounds like you're writing code with hard specs (enterprise company?) where you just feel like a cog in this vast code outputting machine. In that case, it's totally natural to feel like you're dying inside. That's natural. We're creative beings, and you either need to find a different job or calibrate other dimensions of your life to meet that need (physical fitness, start a family, serious hobbies, be part of a community).