See my health guide
Start there then make an effort to identify any possible cause you can reasonably attach to the sleep walking
and tackle that problem directly.
Your primary care physician may be able to help, or seek psychiatric or neurologic consultation. I'm sure you can track it down.