Randomly shuts off

Why would it run fine otherwise? I thought that before though and cleaned everything, and the fuel filter was nice and clean too. dropped the tank and cleaned everything so there isn't anything in the tank.

Yep new cap and vent is working as it should.

It takes awhile sometimes for the garbage in a fuel filter (or sock) to build up on the filter element surface enough to slow the fuel gpm enough so the available volume can't keep up with the demand.
Stopping, or sitting lets that stuff drop away and it starts all over again next time it's run.

If it were my car I would recheck the filter points and then check the pump volume.
If that didn't solve it and I was absolutely sure of the supply I would put a new pump on it and see what it does.

Also keep in mind that an air leak on the vacuum side of the line can do the same thing by sucking air bubbles instead of fuel. (rubber hoses and the like)