Interesting commentary.
When I get to the point of not enjoying it.... I stop doing it. But since music is a part of me and not just something I do, but something I MUST DO, the break from it is a recharging of the batteries while I listen to music other have made and at some point...I never try to force it ( yeah sometimes I do) because I know it will always return on it's own, fully recharged and ready to write, and record again.
Set down with the simple goal to write a song. any song. start to finish in a day or two. it will surprise you what can happen.
Lots of things can steal your joy and fun. I look at the things that MAKE it joyful and fun filled. All the software and FX and VST's I have plus the things filled with artificial intelligence that do much of the heavy lifting for me, actually make this more fun. I can do most everything in my humble studio.
On the other hand, having the internet, and this forum site to meet other musicians and work on tunes together, writing, collaborating on music, playing on other's songs, them playing on mine, that, my friend, is fun. Even mixing music that I had no hand in recording.....such as the various sites that hold mixing contests.... that is fun.
As far as getting better at the technical, production, mixing aspect.... post everything you do over in the songs forum to get critiques and ask for detailed crits not just the pats on the back and the atta-boys. There are folks here who will tell you what's wrong....and more importantly, how to fix it. I credit the folks in the songs forum here for really helping me grow as a mixer and producer of music.
When I really get brick walled..... it's time to go back to the basics. I grab my acoustic and work on scales and new chords. I grab my mandolin and do the same. Inspiration will come back... it always does. Be patient, but while waiting, learn something new..... musically or other....
Or... you could simply grab a beer and watch TV for a time.