JUST pay attention...
It's unfortunate that you did this to yourself. This is why I don't ride with music, the phone, zero alcohol etc and pay attention to my surroundings at all times. If you get caught sleeping on the bike it could be game over.
Glad you are OK too...hopefully lesson...