A low carb diet plan is a way of eating that is high in fat, moderate in protein and low in carbohydrates. There are different variations of low carb, and the keto diet is a special type of low carb with added characteristics. The number of carbohydrates will vary depending on your insulin tolerance and activity level, but on average, these are the common numbers of carbs:
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.)

If you’ve decided to move forward in trying the keto diet, you will want to stick to the parameters of the eating plan. Roughly 60 to 80 percent of your calories will come from fats. That means you’ll eat meats, fats, and oils, and a very limited amount of nonstarchy vegetables, she says. (This is different from a traditional low-carb diet, as even fewer carbs are allowed on the keto diet.)
Sleep enough – for most people at least seven hours per night on average – and keep stress under control. Sleep deprivation and stress hormones raise blood sugar levels, slowing ketosis and weight loss a bit. Plus they might make it harder to stick to a keto diet, and resist temptations. So while handling sleep and stress will not get you into ketosis on it’s own, it’s still worth thinking about.