I suggest 'degrade', e.g.
"Developers very often degrade the software when their intention is to improve it."
"Software decay is a key concern for large, long-lived software projects. Systems degrade over time as design and implementation compromises and exceptions pile up.""Software decay is a key concern for large, long-lived software projects. Systems degrade over time as design and implementation compromises and exceptions pile up."
An Empirical Study of Design Degradation: How Software Projects Get Worse over Time https://ieeexplore.ieee.org/document/7321186
In fact there is a humorous/sarcastic term commonly used by software developers but I can't remember it! I suggest you ask on a specialist computing site.