This is a very difficult disease, because the sleep that you obtain is frequently non-refreshing. But you should make an attempt to keep the block of sleep consistent, even so. There are medications such as Elavil, that in low doses is sometimes very effective. My best advice is to stop the vicious circle by not worrying. Again, that is individual.
Some folks have no problem, and others have a problem even two hours out from sleep.
I've already been through a sleep study and nothing could be found. I'm assuming that you're an adult. There are medications that can be taken if the issue is one of safety. For instance, if you are traveling to a new environment. If that's not the case, for sleepwalking, sometimes an electric eye that can be purchased at an electronics store, can be set up across the bedroom to prevent you from leaving the room.