Restless leg syndrome

This will probably sound silly but I have really bad restless leg syndrome when I lay down at night. I’m 19 weeks and I’m worried it could harm the baby from shaking too much. Is it something to worry about?