I used to get those and holy shxt snacks they hurt….doc said was either dehydrated or possible diabeetus :) indicator but the latter was ruled out on a test.
I didn't really change any habits save for trying to drink more chaser liquids when hitting hard booze straight….and haven't had them in a year or two.