I have to sit up in bed, grab one
foot with one hand and pull the toe down, then grab the other
foot with the other hand and turn it in, so the sole is pointing up. It takes a while, but they usually settle down.
I would definitely talk to a neurologist about the symptoms you've been having, and see what the possibilities are. Good luck!