Sleeping pills are generally safe, especially when used short-term. Complex sleep behaviors such as sleep eating, sleep driving and sleep violence are uncommon side effects. But there are known factors that increase the risk of this happening to you.