Dear Shayan - Sorry to hear that...You would surprise to know that I myself faced 03 fuel pump failures in 2013 Gli and 2014 XLI, One was on M2 and I have to pay 7K (pump + labor) to those thieves mechanic at rest area. That pump again failed after 02 weeks and I bought complete fuel pump assembly (Kabuli) from Bilal Ganj for 9K, Sold the car after that. That is another common problem with Corolla 2008-2014.
First check if your fuel filter is choked, this is root cause, when filter choke it put load on pump and eventually pump stop working. It shows same symptoms before completely dying out which you are facing now.
I don't have experience with new models so I am not sure if issues are resolved or not, may be someone from Corolla 11th Gen forum would be able to help. Thanks