A series of violent incidents at the state hospital raised questions about how to balance treatment with safety.