Lyme can cause all kinds of mental health symptoms, like anxiety, depression, difficulty concentrating, memory problems, obsessive compulsive disorder
, social anxiety, attention deficit
, panic attacks, even hallucinations and schizophrenia.
Although other things can cause leg pain, this does fit the Lyme pattern.
Other treatments that may help you are supplementing magnesium and taking fish oil capsules.