There is some good evidence (both studies and anecdotal) that there is some muscle memory in the sense that it's easier to regain muscle that was lost than to build it in the first place. So even if you lose some muscle during this whole thing, you should be fine. You want your body to be in as much in ketosis as possible; it has a huge reserve after all.
I'm sure you've seen or heard of this case study of the Scottish man who fasted 382 days [pdf]! Of course, he did it under medical supervision. But I think it's an important case of what CAN be accomplished.
[pdf]: https://pmj.bmj.com/content/postgradmedj/49/569/203.full.pdf