Use the timer reference variable to clear and / or invalidate it:
Check out other things that timer can do while you’re at it:
The Set Timer by Event node is yet another alternative which may be preferable to Timer by Function as it’s not prone to typos.