It's not the fret. It's the resonance of the instrument at that particular pitch. Almost all Fender basses have the same problem with either C#, D or Eb on the G string. Sometimes a slight tweak to tighten the truss rod will change the tension, and therefore the resonance, to help. Also make sure your neck screws and bridge screws are good and tight.
There is one exception: if the fret is so worn that the string, when fretted, is so low it's actually physically touching the next fret up, physically impeding the string vibration. But that would be rare, and that would entail either a complete fret dress or complete fret job. I had to have the latter done on a @1936 Gibson L-00. A couple of notes had no sustain. The first "luthier" I took it to said too bad. The next, real luthier said the frets were worn and some had been replaced with non-standard frets. He did a complete fret job with original style frets and the instrument played great.
OTOH, my custom P-style bass with fanned frets has a dead C# on the G string, and that's just life.
To minimize this, some makers, like Rickenbacker used to do, Warwick, Conklin, etc., put a strip of contrasting wood down the center to equalize out the resonance. Others, like Steinberger and Moses Graphite, use a material that the resonance is above the bass spectrum. G&L saws their blanks down the center then reglues them to purposefully make a discontinuity that has the same effect as gluing in a center strip. But all instruments have some sort or resonance or the other. The goal of the designer is to place that resonance in the place that has the least effect possible on the instrument.