I get restless legs overnight sometimes if I've walked too much or exercised a bit too hard. I have a mild tic disorder too, and it feels really similar - the movements aren't 100% involuntary, more an overwhelming urge to move, but not like a psychological compulsion as in OCD either. Neurologists sometimes call tics "unvoluntary" to differentiate this weird middle ground, which I always liked! Usually taking paracetamol before bed (or if it wakes me up) works beautifully. Just thought I'd add this since there are so many potential causes, and I don't think my muscle fatigue or nerve irritation or whatever the exercise triggers is an uncommon one.