Wow all of this does not sound fun at all!! Just a suggestion, have you been to a Doctor that specializes in food intolerance or sensitivity? I don’t know much about the keto diet, the right carbs are so important in any medical diet, but doing it just slightly wrong for any specific cause can be detrimental. Treating the cause and not the symptoms can be such a struggle in healthcare.
Examine different autoimmune diseases, mine is Celiac Sprue. The simple crackers to settle my stomach were killing me. So hard, but keep an open mind and never stop trying to figure it out.