I doubt it's related to the pill unless it's making you nauseous. Are you taking the pill close to the time you start drinking?
Otherwise, make sure to drink water in between alcoholic drinks and try to eat something. Also pay attention to the type of alcohol you're consuming and how it affects you. I personally cannot handle ciders because I get nauseous almost immediately. Certain wines trigger that too for me. Also, are you drinking while it's sunny and hot? Sun exposure can make you feel more drunk and worsen your hangover if you're not drinking or eating enough.
And over time as you get older, your hangovers are likely to worsen in general.