do a number on

Intermédiaire supérieur (B2) informal

To really hurt or damage something.

"The stress of the last year really did a number on her health."