Devices like the L6220 and L6221 have been designed specifically to withstand this mode of operation. Guard rings placed around the device control the parasitic currents to mitigate their effects. These two devices are available in DIP and surface mount packages and are designed specifically for stepper motor drive applications.