THC interferes with the REM cycle. This is why when heavy smokers quit, they have crazy dreams for a few weeks. That's probably why you feel so groggy the next day when you take higher doses. You were asleep, but not getting good sleep.
Pot helps you fall asleep, but it does not help you get good quality sleep.