I felt miserable on Keto the first two times I tried it. I’ve found doing fasting in the month prior helped with the adaptation and a large part of the misery was loss of electrolytes.
By using electrolyte powder I only really had one or two really miserable days this time round.