Agree, think your running out of fuel.
Fuel pressure, weak pump, antisiphone valve, other fuel line restriction or tank vent restriction.
As zeller mention start with the easy part, remove the gas cap and see if it comes back to doing ok. If not, then get a gauge on the fuel line between...