You’ll need to focus on titrating your insulin. Given the low amount of carbs in the Keto diet, I suggest you take detailed notes on how your blood sugar reacts to protein and fats. That way you can determine how much insulin to take with food. As for your basal, if you consistently go high/low without any bolus on board it might be a good idea to revisit your basal rates

In this guide the only form of pure fat we use is butter. If possible, coconut oil would really be a nice upgrade. We couldn’t fit coconut oil into our $5 a day keto on a budget meal plan, but it’s cheap if you buy in bulk. Another good substitution would be olive oil or coconut oil and vinegar instead of the premade salad dressing. Most cheap premade dressings will use oils that are frowned upon on keto like canola or vegetable oil.
Diarrhea can also be due to a lack of fiber in the diet, says Kizer, which can happen when someone cuts way back on carbs (like whole-grain bread and pasta) and doesn’t supplement with other fiber-rich foods, like vegetables. It can also be caused by an intolerance to dairy or artificial sweeteners—things you might be eating more of since switching to a high-fat, low-carb lifestyle.
Keep in mind that the doctor is getting nutritional ketosis confused with a much more dangerous condition called ketoacidosis. These are two different conditions.  Ketoacidosis is mostly  a concern for Type 1 diabetics and others whose bodies are unable to make or process insulin correctly. Ketoacidosis usually develops when a person with type 1 diabetes develops an serious infection, has a heart attack or other debilitating illness. It is accompanied by dehydration, high blood sugars and is precipitated by the inability of the sick patient to administer proper amounts of injected insulin.
Achieving ketosis is a pretty straightforward, but it can seem complicated and confusing with all of the information out there.4If you want to learn more about ketosis and the scientific process around it, you can visit a very in-depth discussion about on Dr. Peter Attia’s website. Here’s the bottom line on what you need to do, ordered in levels of importance: