To read cases where guys got off for killing in their sleep, see this article: 7 Criminal Cases That Invoked the 'Sleepwalking Defense'
https://health.usnews.com/health-news/family-health/sleep/articles/2009/05/08/7-criminal-cases-that-invoked-the-sleepwalking-defense