My LLMD told me that 25% of patients with lyme have a particular pathway from the disease that converts vitamin D into an inflamatory agent. There is a blood test for this pathway, it can be proven or disproven if you have this problem. Chronic Inflamation in general does interfer with the immune system. So does low vitamin D. D is also needed for detox. However, patients with this pathway are low in vitamin D because they keep converting it to inflamation. I have this particular problem. This is how I deal with it.
When I take vitamin D I may feel worse, I may have a worsening of symptom, however, I need vitamin D for my body to function, including my immune system. This is a catch 22. For month I didn't take vitamin D, and still was sick. my personal conclusion was that the benefit of living with less vitamin D and therefore theoretically less pain, was outweighed by the long term problem of having low vitamin D for too many months impairing my body function. I ultimately chose for me to supplement with vitamin D, a few times a day. my vitamin D levels are still low, just not horribly low like before.
I addressed the inflamation with an anti inflamation diet, Co Q 10, Wobenzymes and a variety of other techniques. My hope is as I recover this will not be a problem forever.