Based on the description, it sounds like a failing fuel pump. Have you checked the fuel pressure to make sure it is within the manufacturer's specifications? Also, is there any dark smoke from the exhaust, odd smells, or anything other that you have noticed?
If the fuel pump is failing, the vehicle may or may not set a code because it thinks it's running out of fuel. The crankshaft position sensor does the same thing. If it is happening only when the engine is warmed up, that would be my first thought. If it happens regardless of engine temp, then I would start with fuel pressure.
Here is a link that explains in general how to check fuel pressure:
Also, the picture below provides the manufacturer's pressure specifications. Check this and let me know the results. If you have no pressure gauge, most parts stores will lend one to you.
See pic below.
Sunday, November 6th, 2022 AT 9:16 PM