Hi there. You need to find the cause for restless leg syndrome like blood test to check iron deficiency anemia, varicose veins would need surgical repair, reduction of caffeine and nicotine consumption, stop smoking if you do, exercise and good sleep. Medications used are iron supplements, carbidopa- levodopa, opioids, carbamazepine, clonazepam, baclofen, temazepam,bromocriptine etc. other drugs are ropinirole, pramipexole or mirapex you are already taking, gabapentin etc also can be tried under .your neurologist prescription. Other alternatives are warm/cold baths, electric nerve stimulation, oral magnesium, and acupuncture . Anxiety may aggravate symptoms and needs to be controlled. Take care.
I have nerve damage from herniated disk and have the same problem. I tried things like muscle relaxers and neurontin but they didn't work. Finally my doctor put me on gabitril and they finally stopped. It is a seizure medication. As far as your legs giving out my best guess would be the spasms are overworking them. I know I would wake up and feel like I ran the iron man marathon. I had even occasionally kicked my husband out of bed. I also have arthritis and I take Black cherry extract for it. NOW brand 750 mg. I took 2/3x day for the first week then went to two per day and I adjust for weather and activities that irritate it. As for telling you what is wrong I have no clue but I hope some of this is helpful. Good luck to you.