There is a lot unsaid in this post so I will try and read between the lines to answer your question. Please correct me if I got anything wrong.
From this, I believe that you decided to save some money by buying a replacement pump online and having your mechanic install it since only the pump was warranted but not the labor.
So the Toyota pump died 2 years ago and you’ve had 2 of these replacement pumps you purchased installed by your mechanic.
These pumps failed because you bought cheap pumps. Pumps that were designed to last just long enough for the car’s owner to sell off the car. Or about a year or so. Same for the second replacement which I assume was another one of the cheap replacements.
Mechanics generally won’t use those pumps because they warranty their work as well as the pumps… and they don’t want you coming back in a year for a free pump. Quality costs more for a reason.
If you want this problem to go away, buy the $400 fuel pump instead of the $100 Ultra-Power pump.