This engine's computer stores failure codes. You don't mention whether the "check engine" light is ON or OFF. If ON there will be a code or codes stored. A code reader is needed, some auto supply stores will read the code for free.
The time related aspect suggests an electrical failure but first check the gas cap - that there's no vacuum in the tank that's preventing fuel pickup by the fuel pump. When it quits just open the gas cap for a moment, close it and see if it will start. If no start, that possibility is eliminated.
So then remaining are the electrical possibilities - fuel or spark. When it quits and you try to restart it do you hear the fuel pump run before you crank the engine? If you don't know what this sounds like, pause of a few seconds after turning the key to ON before turning to START and you should hear the fuel pump run for a second or two. Try it in a quiet garage. Anyway, if you don't hear the fuel pump run then the culprit may be the fuel pump's relay or the pump itself.
On the spark side I don't know where to direct you to some central component that would shut down the engine. These engines have several ignition coils so if one failed the others would probably carry on. Beyond that ??