بسم الله الرحمن الرحيم
You should bear a little pain but should not gargle in the state of fasting as in case water enters down the throat while gargling then your fast will be annulled.
Allah knows Best!
Darul Uloom Deoband
This answer was collected from the official ifta website of Darul Uloom Deoband in India.