If one thing plays havoc with another or wreaks havoc on it, it prevents it from continuing or functioning as normal, or damages it.
Time-zone changes play havoc with our bodies.
The weather played havoc with airline schedules.
Stress can wreak havoc on the immune system.