Car has problems starting after putting in gas

I have a 2013 Chevrolet Sonic and it has been having problems starting. It happened once when the gas tank was almost on E, then now it does it every time I put gas in even if it still has some gas in it. It will crank but won’t completely start. I have to push down on the gas and try to put it in drive or else it will shut back off. Any ideas on what it could be?

The EVAP purge valve may be leaking.

When this happens, gas fumes are forced into the engine when refueling and the engine becomes flooded.

So in order to get the engine to start, the gas pedal must be pressed to clear the flooded condition.