When compared to the calorie-restrict diet, the subjects who underwent the ketogenic diet experienced a reduction three times greater in hemoglobin A1C (1.5% vs. 0.5%).  In addition to observing greater improvements in diabetes-related markers, researchers observed a greater reduction in medication usage in subjects that underwent the ketogenic diet treatment. Thus, due to their overall findings, the researchers stated that “Lifestyle modification using low carbohydrate interventions is effective for improving and reversing type 2 diabetes.” 
Grandl and his colleagues compared a high-fat diet with a ketogenic diet in mice, feeding the animals specific foods and then conducting tests to understand how their bodies reacted to the diets. The study showed that compared with the mice on the high-fat diet, those on the low-carb, high-fat keto diet appeared healthier while on the keto diet but also began to quickly develop insulin resistance — meaning that their livers were less able to respond to insulin and regulate sugar levels in the blood.
It sounds as if you may have been following a very strict keto protocol. I’m not, and have not followed a ketogenic diet, but am interested in it. I’ve been reading up on it a bit on the blog called Mark’s Daily Apple.* I’ve been following it for several years now, even before Mark tried keto. Based on some of his blog post, both keto related and otherwise, it seems that women do better with slightly more carbs than men. He’s written several blog post specifically for women, including one called 7 Keto Tips for Women, which you may want to read. https://www.marksdailyapple.com/7-keto-tips-for-women/ Then there is this one Where I Part Ways with the Popular Keto Movement https://www.marksdailyapple.com/where-i-part-ways-with-the-popular-keto-movement/ Perhaps the problem wasn’t the keto diet in and of itself, but that you went too low carb for you. It’s worth considering. I’ve also found this site to be pretty interesting https://peterattiamd.com/ Here’s a link to his section on keto https://peterattiamd.com/category/ketosis/ He followed a ketogenic diet for a number of years, though as of 2016 was no longer ketogenic, but definitely eating lower carb than most. (That is under Articles, on the drop down menu, click on Personal.)
What the expert says: ‘There have been a number of cases where GPs have said, “You’ve got IBS, go on the low-FODMAP diet”,’ says Dr Megan Rossi (@theguthealthdoctor). ‘The only support they give you is a printout with a limited explanation of the diet from the internet. I’ve had clients come into my practice who’ve been given a list of 10 “friendly” foods to survive on, which is nutritionally dangerous.’
DASH is based on the following foods: fruits, vegetables, low fat milk, whole grains, fish, poultry, beans, and nuts. It recommends reducing sodium, foods and beverages with added sugars, and red meat. The diet is heart-friendly as it limits saturated and trans fat, while increasing the intake of potassium, magnesium, calcium, protein, and fiber, nutrients believed to help control blood pressure. 
Wouldn’t it be great if life came with a magic remote control that made the bad parts speed up and the good parts slow down? You could hit FF at the beginning of every workday, and RWD at the end of awesome date. All the vacations, holidays and parties could move at the pace of a Kenny G song, and all the endless conference calls could spin by faster than Nicki Minaj’s hairstyles.
Have Protein at Every Meal and Snack. Adding a source of lean or low-fat protein to each meal and snack will help keep you feeling full longer so you're less likely to overeat. Try low-fat yogurt, small portion of nuts, peanut butter, eggs, beans, or lean meats. Experts also recommend eating small, frequent meals and snacks (every 3-4 hours), to keep your blood sugar levels steady and to avoid overindulging.
On May 24, 2018, I had a 90-day follow-up appointment with my doctor. When he came to the exam room with my chart he immediately started to fist pump me with praise of congratulations, he was ecstatic. I am now at 233 pounds (106 kg)! I have lost 51 pounds (23 kg) and my girlfriend has lost 25 pounds (11 kg). I went from a 42-inch (107 cm) waist to a 38-inch (96 cm) waist. But, here’s the best part, my A1c came down to 5.7 and all my health markers have improved. He called me his poster child for being on the path to curing my Type 2 diabetes.