Sorry, I'm not understanding the problem. You enjoy working too much to slack off? So keep working.
I mostly agree with that.
If you are working because you like work, that is fine. It is generally good to do what you enjoy.
If you are working because you are feeling compelled to do it, perhaps by stress, OCD, or something else, then it is an unhealthy situation.
Now i find my self not knowing what to do, to relax and get my mind off the next problem at hand, or wanting to test some new code i have written down. i try getting on youtube and watching funny cat videos, epic fail compilations, or people doing this new found harlem shake(disturbing i know!) but i always end up getting sidetracked with a little voice telling me"hey, you really should learn how to do_____"<- fill in the blank". And i go and look up random tutorials on how to do, whatever i need to do at the moment for another hour, just getting my self back to the mind set of"Damn i need a break!" And the horrible cycle continues
When I read this, I don't see it as someone who simply enjoys programming.
He doesn't know how to relax. He feels compelled to study some specific topic, to the point of interrupting other activities, and this continues in a "horrible cycle".
My suggestion would be first the self-help method. Like those above, do something COMPLETELY different. The only activities the OP listed in his life were sitting at a computer doing work, or sitting at a computer doing play.
I agree with martial arts or other physical exercise. It gets you away from the computer. Photography (working outside, not studio stuff) can also be good for many of the same reasons. Someone suggested music, which is also good.
But sometimes that won't work.
If self help doesn't work, it is likely that something else is going on. Perhaps you conditioned yourself into a specific thought pattern. Perhaps some past experience makes you think you must know something to avoid a disaster, perhaps from a failed class or something. Perhaps there is some other triggering behavior or triggering belief, you just cannot see it because you are too close to the situation.
In that case, professional help is a good thing. A few months with a good behavioral psychologist can help identify the triggering behavior or belief, and help modify the responses to it.