There was a Star Trek 2G episode about a killer who had a mind wipe. He was being hunted by the society he had no memory of damaging. Don’t remember for sure how it ended, but I think he had some kind of sacrificial death.
There was a Babylon 5 episode about such a thing as well.