This is because there is a rev limiter at 4k to keep you from over reving it and blowing it. The limiter is increased when in gear.. but there's still limiters
Is there anything I can do to confirm the cause of the problem before spending time and money on this repair? It doesn't appear to reproduce on demand, but I know if I my son takes it out driving around it will leave him stranded.