If you genuinely can't stay awake then I would suggest the following:
Either..
a) You find your degree so mind numbingly boring that you probably shouldn't be doing it.
OR.
b) You have some kind of medical problem, in which case you should see your GP.
You should certainly be able to go for a couple of hours without falling asleep as a healthy young person.