One thing to note re engine failure vs battery failures. In the 787 the electrical power generation for hydraulic systems has been replaced by electrical systems powered by these batteries.
If an engine fails, you can still land the plane. If these batteries fail, you cannot. You have no power to guide the plane to a safe landing.