“cannabinoid hyperemesis syndrome, a condition that causes cyclic vomiting in heavy marijuana users and can be cured by quitting marijuana.”

Link. I first heard of this in an ER medicine podcast