Truthfully, the spec itself doesn't seem too difficult to understand; it's mostly my inability to stay focused that causes me the problems I deal with when studying and coding. Perhaps the true culprit of our times are browser tabs; the more I have open, the more overwhelming it becomes to consume them.
As for caffeine and anxiety it's better than the depression that I feel with a lack of caffeine. Caffeine also has a kind of analgesic effect, or rather maybe the lack of caffeine causes me to have more pain in my spine for some reason. Sleep isn't too difficult with chronic melatonin use. Your body never adapts to melatonin as with other substances, so you can maintain the same dose (5mg in my case) with consistent efficacy. I'm out within 30 minutes after taking melatonin.
Also, sleep. Good sleep, a bit of regular exercise and a bit of a routine are a great deal of help to stablizing your mood and anxieties.
OAuth and OpenID are completely, ridiculously, utterly, pathetically over-complicated. It's one of the worst specs ever released. You do not need to know it to be a professional developer. Most professional developers will have no clue how it works. Trust me, I have over a decade of experience. If you can get a plug and play library, I really would just do that. Especially while learning development.
I mean, if you're enjoying it, go ahead, but OAuth is basically stupid. A cruel joke inflicted on developers and a lesson in how not to make a spec.