Nah, I don't assume it. Hence 'may' and 'attempts'. But the explanation is simple enough. If you can discover what it takes to code a mind then you're also going to learn some of the systemic faults that minds, qua minds, can develop. Of course, I could be wrong about this. It could be that mental diseases are all purely down to hardware issues (brain health). But it seems like a bad bet. For example: addiction, or at least specific types of addiction, depend on people's culture and choices.