The camshaft sensor and gears on the early (2001-2003) GM 8.1L
were problematic and can cause this sort of issue, even with a
replacement sensor. The first thing I would do if you haven't
already, is have a crankshaft relearn done with a scan tool. This
will "re-sync" the two sensors with each other and could resolve
the issue. You should also closely inspect the pigtail connector
that goes into the sensor, the terminals inside them sometimes get
pushed back and won't make a good connection. Another option would be to upgrade your camshaft sensor to the later (2004+) GM 8.1L design:
12575182-UPDATE - Camshaft Position Sensor Update Kit For 2001-2003 GM 8.1L