I’m with @Mustangman on this one
1/2 of the bad crankshaft position sensors which I’ve replaced over the years have never generated any kind of fault code
On the typical vehicle, it’s not a huge ordeal to replace it. And the sensor itself is reasonably priced, a lot cheaper than a fuel pump, in most cases.
Might just pay a shop to replace it. Call it preventive maintenance. If it fixes the problem, great. If not, at least you’ve ruled something out.
Paying diagnosis at a shop can get expensive, as labor rates are typically over $100 per billed hour. It might make financial sense to skip the diagnosis and just pay for the sensor replacement . . . with the written agreement that the customer will NOT blame the dealer if the problem persists.