Eating vs. Pooping

i have been eating VERY well for about 2 weeks but last night i had a scoop of chocolate fudge brownie ice cream. now i am hugging the toilet and feeling disgusting. is this because of the sudden change in diet? i dont know what to do because i feel gross and my stomach hurts so much :(