What do you do if you can't sleep?

Barney thought this was worth mentioning said
8

I’ve always been an eight or nine hours a night sleeper. However, for the last couple of months, my sleep pattern has been completely thrown off.

I go to bed exhausted and then wake up after a couple of hours. I’m then up for five or six hours and then sleep for another hour or two. I then rinse and repeat the next night.

I’m exhausted. I’m dragging around all day and not getting much done. And I’m grumpy.

Do any of you have any suggestions on how Barney can get a good night’s sleep?