I've had some distortion of my toes also, but that seems to be due to wearing an ankle brace on one foot without getting a bigger shoe for that foot.
As for the sleep problem, you might check if your current list of medicines includes simvastatin. I've found sleep problems included on its list of known side effects. Several other types of statins are available, but usually cost more.