I take medication prescribed by my GP but I do sometimes suffer at night when trying to sleep and like you the meds probably work 80% of the time. Usually if I can feel it coming on I’ll get up, walk around for a minute and do a couple of stretches, give my legs a good shake and that usually eases it off just enough that I can fall to sleep. If I am having a bad night as well after my stretches I will put my weighted blanket on which does seem to help as well.