Nissan had a few problems around this time. Wires in the wiring harness engine to firewall passenger side of the engine compartment frayed and broke in the wiring harness but this normally set erroneous Service Engine Soon/Check Engine light, often flagging an O2 sensor code. I have also replaced several ignition switches as the electrical portion failed resulting intermittent voltage drop across the switch.
Your engine has six individual coils so it is not possible for all 6 to fail but it is possible the crankshaft angle sensor or crankshaft sensor may fail when it gets hot loss of either signal would cause the ignition and fuel injection to be lost.
I would start by scanning for codes using the onbaord diagnostyic connector under the dash. On cranking I would see if the scan tool reads cranking RPM, if it doesn't see cranking RPM you have lost a key input to the Engine Control Module. Next I would attach a fuel pressure gauge fuel pressure should be 34 PSI at idle, 43 PSI key on engine cranking if everything is good.
Next I would check the ignition switch for voltage drop on the ignition circuit. I actually found a video on Youtube of how to conduct a volt drop test pretty good.