We know that there are schizophrenic villains who do not know what they are doing. I immediately think of two villains from Spider-Man: Norman Osborne or Doctor Octopus, who just get overwhelmed by their alter egos and turn into villains.
Now, are there any superhero analogies?
I am thinking of something like Batman, who has a personal life during the day and is Batman at night. Batman is completely aware of this. But what if he was doing all this while sleepwalking? When he wakes up the next day, he may be surprised by a few new scars, but he does not know that he has saved the world once more (for the sake of it, please ignore that most of his technology comes from being Bruce Wayne with all his money).
I am looking for answers from any universe (Marvel, DC, etc.) and any source (TV, comics, etc.).