Stops accelerating for a while and low fuel light comes on with full tank!

I have a 2012 mustang v6 which drives good all the time. Only sometimes when i put the car on drive and start to press on the gas, it does not want to accelerate how it suppose to for a few seconds then it comes back to normal and drives good the entire time. It only happens when it wants to, some days it’s normal and doesn’t do it at all. Then this one day while at a red light, i started to accelerate again and it did it again and the low fuel light came on while the tank was on full! Any idea why that keeps happening??

A wiring diagram might give a clue. Maybe there’s a poor connection shared by the fuel pump and the low fuel warning light. A ground wire near the gas tank, for example.