Chewing 1 piece of gum or two pieces of gum while fasting or intermittent fasting should not be a problem.
When you intake too many calories from other things or too much sugar while intermittent fasting then it becomes a problem.
Chewing a few pieces of gum while intermittent fasting is perfectly okay but best to avoid chewing gum if possible until the intermittent fasting is over.