Fuel light on with gas

I have a 2012 f150. The check engine light came on and was told to unplug the battery for 5 min. Did that. Now the low fuel light is on and the gauge is staying on E I still have over 300 miles until empty tho. What to do

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0