Does sound like fuel starvation. If the fuel system (faulty fuel pump, clogged but not entirely blocked fuel filter, etc) doesn’t push enough juice to keep going, it will run a while til it has exhausted the fuel that has trickled into the fuel lines and finally quits after it empties the fuel...