How are you changing the zoom value?
If you are changing it via some equation, perhaps you should try rounding to the nearest hundredth decimal place.
It might be that the value is getting some strange number that is causing the crash, so you could try rounding it, and also clamping it.