There is NO "ideal" number of samples! NEVER can be an ideal number actually.
Do you understand that sampling is a statistical method? IF the testing you decide to do to analyze future failures is actually "statistical" in nature it can only - at best! - provide a statistically correct way to estimate the probability of some future "identically statistically identical" object of failing in real-world use the same way as it was tested.
Now, the test of even only ONE object may show absolutely that the design will always fail (too weak, too flexible, the wrong shape, etc.) Or it may show that the object is absolutely strong enough and big enough, but absolutely too heavy to fly, or tall to lift, or too wide to fit in a doorway or in the shipping container.
But, if you test 5000, the 5001 might break early in service life anyway because the customer didn't "behave like the test" and "didn't install it per procedure" in the "expected design conditions" ...
The nbr of test pieces requires an analysis of the likely failure mechanism, the amount of variance between the fabricated parts (castings are notorious for random unpredictable failures internally due to voids, cracks, stress risers, holes, vents, cavities, and failed molds!) So, what is your standard deviation of each part? What is the expected failure mechanism? How likely is your test going to discover the expected flaw in the product? (If a 0.2 mm pinhole causes a fatal leak, will your test actually find that size pinhole?) How expensive is the test to run? How long must you run the test? How expensive is the replacement part - if it is tested to destruction? What is the cost of failing the test? What is the cost of NOT failing the test (getting a false "positive" result, and then building the bad product based on bad test results? How many parts will you build, and will any test actually find the potential flaws?
A rocket engine and rocket cost 100,000,000.00. The test costs an additional 50,000,000.00 How many times do you test the irreplaceable rocket engine before launching a 750,000,000.00 dollar satellite into orbit? A submarine and its nuclear reactor costs 2.8 billion and has 120 people on board, takes 6 years to make. How many tests do you do before letting it submerge the first, 2nd, and 3rd time?