Not eating and not drinking will have been the core problem , smoking on an empty stomach isn't the best (or smartest) thing to do.
The saying "moderation in everything" is a good one to remember when using anything.