You popped a pill on an empty stomach
Nausea is the common side effect of many medications including oral contraceptives, antibiotics, pain medications, antidepressants, blood pressure medications and the list can continue. It happens when your gut processes food by releasing stomach acid, so when you take a pill before you eat, that acid will still be released, causing irritation or nausea.