We know that there are schizophrenic villains who do not know what they are doing. I immediately think of two villains from spiderman: 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 something like Batman, who has a personal life in day hours and he is Batman at night hours. 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 about a few new scars, but does not know that the saved the world once more (for the sake of it: please ignore that most of his technology come from being Bruce Wayne with all his money).
I am looking for answers of any universe (marvel, DC, ...) and any source (tv, comic, ...)