In a certain sense, sleepwalkers are controlled by their subconscious.
They have autonomous activity abilities, with a fair amount of flexibility, and sometimes their strength can even surpass normal awake moments, making them potentially capable of harming others.
If someone harbors deep resentment towards another and has a sleepwalking condition, it is indeed possible for them to attack, or even kill this person while in a sleepwalking state.
This situation has indeed occurred in reality.
However, a sleepwalker committing murder is equivalent to a mentally ill person committing murder.
The tragedy that occurs in this state does not require the sleepwalker to bear legal responsibility once they are awake.
This point has been exploited by some individuals who falsely claim to have killed someone while sleepwalking to shirk their own responsibility.
Determining whether someone has committed murder intentionally or while sleepwalking has always been a medical conundrum.