I was so exhausted that all I could think about was sleeping.

Literal

Completely-tired [because-ので] sleep [nominalizer-こと] [only-しか] think-could-not.

~ことしか考えられなかった means 'could think of nothing but.' ~しか~ない is the restrictive 'only' pattern requiring a negative verb.