This could be difficult to apply for such an extended period of time, but I generally have good results by just breathing exclusively through my mouth. Pretend you’re underwater and breathing through a snorkel.
This technique has gotten me through many a fart and temporary sewage/fertilizer exposure.
Most of what we experience as taste is actually smell. It’s generally not an issue.
The trick is to not put the smelly thing inside your mouth.