The DM can balance by carefully reviewing what magic items they include, either in loot tables or via crafting. If the party gets too powerful in combat, they can tweak enemy stat blocks or add more enemies to balance encounters. If just one particular item is a problem, there are ways to get around it such as if it breaks, gets stolen or runs out of charges.