I'd guess your issues have more to do with the hormonal shifts of PMS/menses than diet.
I have done a strict ketogenic diet. It did not impact my mood. It made me very tired at first and then ok.
I am doing low carb now and do not notice food-related mood changes.
I hope you feel better soon!

WC