Whether it's a relief valve, pump, pipe flange, or anything else, when you’re dealing with helium you are dealing with a tough fluid to contain. It is used as the index fluid in calculating leakage or permeability. Therefore, you have to identify what are the conditions of the fluid – temperature and pressure.
Teflon is one gasket material I gave up on 5 years after it was introduced. Teflon has no “memory” – once under stress, it will not resume its former shape. This feature alone defeats it as a desirable gasket material. What you call Teflon is probably a combination of other materials with it – such as glass fibers, metal, or elastomers.
Whether Viton works depends on the application. I would expect it to work – at least for a while. Viton is noted for its applications where you have “aggressive” fluids – corrosives, acids, bases, etc. For helium, I would apply a metal gasket, such as nickel or stainless steel. However, the QUALITY of the joint – the flange finish, the alignment, the correct torque, the cleanliness, the temperature, and no vibrations – plays a large role in the ultimate success. The material is just a small part of the solution. After all, helium is going to leak or permeate through anything – whether you like it or not. Just like hydrogen, because of its molecular size, it will ultimately escape. So careful attention to the quality field application is important.
The pipe “class” means nothing to identifying the correct gasket material especially when dealing with a tough actor like helium. How you arrived at identifying Viton as the correct one is something you haven’t explained.