When you put gas in the tank, the air that the fuel displaces has to go somewhere. Some of it might go out the filler tube, but most of it goes out through the vapor canister and then through the purge valve.
If the purge valve gets stuck closed, it's very hard to fill up. Or your vapor canister can get clogged.
Either failure is likely to throw evap codes, although maybe not evap leak.
The pump nozzle takes up most of the filler opening.
There's probably also a bottleneck at end of the filler tube where there's usually something to make it harder to siphon fuel.
It's like the inverse of trying to pour fuel out of a old gas can with the vent closed... You can get some gas in while the tank vent is blocked, but the filler tube easily backs up. When it happened to my truck, it took minutes to get a gallon in; after replacing the stuck closed valve, fueling was back to normal.
When it started being problematic, I could regularly fill to about 3/4th full, which was annoying but I'm a light driver, so not a big deal... then one day I was near empty and I could only put 1 gallon in at two different stations.
If the purge valve gets stuck closed, it's very hard to fill up. Or your vapor canister can get clogged.
Either failure is likely to throw evap codes, although maybe not evap leak.