Has anyone had this happen before? My period only comes when I eat low carb/ no sugar.. if I don’t follow that diet my period won’t come

I’m tired of feeling broken and eating like this gets super old