constipation+ period cramps. any hacks?

i hadn't been eating well this week due to stress. im on my period and usually the cramps cause diarrhoea but idk this time its like constipated and kinda irritating. any hacks?