Original: Lamia was cursed with the inability to close her eyes so that she would always obsess over the image of her dead children.
Simplified: The curse was that Lamia could not close her eyes.