Sowwy but once your slave is mind broken, they can't be turned to normal... Happened to me too, you're not alone with this stuff :)
Next time if you want to avoid it, just come to your slave and reward them for nothing, and they should stay normal. You'll notice a text appear "your slave seems to be depressed..." or something like that.