Medicare and Medcaid

Wow ,
I live in montana and i have a spinalcord stimulator for my legs and hips and im needing the battery repalced i just found out that my montana medcaid and medicare will not cover to have this battery ireplaced im so upset because im in so much pain and i would rather have this then being on pain meds the rest of my life i have never had a probelm like this before with either of them and this is bullshit id like to know what other people like us do that cant aford to pay for it what  they do this is so messed up .
and it would have help alot with the RA in my Feet because my spinalcord stimulator is set to my legs and hips that are the worst.