Because of the symptoms God mentioned, you may be suffering from anxiety syndrome, which is a neurologic disorder, especially when you're sitting or lying down, which is an uncontrolled urge to move your legs, and a lack of sleep caused by the constant movement of the legs can cause fatigue and headaches, which can help you to discuss some of the options that are helpful to the symptoms.
Doctor, I've been experiencing some strange symptoms recently: headaches, fatigue, back pain, shortness of breath, and also the unconscious movement of the leg.