Doctors might prescribe some modern medicines to keep a tab on these reflections but in our Indian culture there are remedies for these things through the route of Yoga and meditation. It is said that if we undertake meditation and do Yoga for some time everyday in our lives then it soothes our mind and calms it down to lower energy state and the unnecessary excitation is reduced to bare minimum and that can help in getting an undisturbed sleep.
Knowledge is power.
Good sleep habits will reduce this problem. Timely sleep and sufficient sleep will help in reducing this problem to a large extent. Sitting calmly for some time before sleeping forgetting all the other problems and days of activity may help in reducing this talk in sleep syndrome. Reading some comic books or some spiritual books before sleeping for 15 or 30 minutes will be helpful to avoid this talk while you are in sleep.