I only buy portable Li-ion batteries from manufacturers with a history of product recalls in my country or directly from major retailers that regularly recall defective products.
I also only buy portable battery models that I believe will sell or has sold many thousands of units so any widespread manufacturering defects should become apparent sooner.