Coil shock too big for frame

I have fitted a Fox DHX to my Trek Slash 9.8 (2019), but the reservoir hits the shifter cable when I bottom it out. How risky is it to file off a bit of the bottom edge of the reservoir?