Was there air in the fuel rail?
If so then you may have a hose in the gas tank with a crack, when fuel level is low enough cracked hose will suck in air when pump is on, but should also cause occasional stumbling when driving
If it was outside the tank you would smell the fuel leak
Bad gas
All gasoline has some water in it, bad gas is when there is too much water
Water and gasoline can't mix
Water is heavier than gasoline
When vehicle sits the water will settle to the bottom of the tank, where fuel pump pick up is
So on startup fuel system gets a big gulp of water
Water is not "fuel", lol
Ethanol can and will mix with water, which is why its in Winter fuel, prevents any water in the fuel from freezing in temps under 32degF
Ethanol bonded with water can also carry the water out thru exhaust without engine stumbling as it will still burn like a fuel with water bonded to it
How can you know you have/had bad gas, you can't, unless you test it by putting some in a clear glass container and let it settle for a few hours, you WILL see the water line form at the bottom of glass container
Or on a no start, pull a spark plug and try to light the WET tip with a match/lighter, gasoline burns fast and bright, water not so much, lol
Gas station all have water settling sumps in each of their under ground tanks, and they are pumped out weekly, or should be, but it is money out of their pocket since they pay for gas same as we do, by the gallon
Avoid getting gas when you see a refuelling tanker dumping in gasoline, that can stir up the water at the bottom so you may end up with more water than usual
Gas pumps also pull the fuel from the bottom of under ground tanks