This reference on Lean Six Sigma, p. 159, provides a formula to calculate the minimum sample size, and mentions the "$5$ defectives" rule of thumb, a formula that relates to the normal distribution, and it is perhaps more useful to the OP than my contested (see comments) reasoning. I cannot argue about the reference's level of authority though.
Also this US government websource in section "Transforming Poisson Data" mentions this rule of thumb, relating it to the normal approximation to the Poisson distribution.
But I would like to offer a specific argument which is consistent with this rule of thumb (not necessarily an optimal argument -see comments):
One should clarify what "reasonably accurate" estimate means.Taking the road of Confidence Interval, we would want to have a point estimate whose variance/standard deviation is small enough so that the associated confidence interval won't include the value zero (and hence, negative possible values also, which in our case, would be non-sensical, and would also render the point estimate "statistically insignificant").
Associating each unit produced $i$ with a Bernoulli random variable $X_i$ that takes the value $1$ if the unit is defective and $0$ if it is not, and assuming that all units have the same probability of being defective, and that each random variable is independent from all others, then we can estimate this probability of defect as
$$\hat p =\frac 1n\sum_i^nX_i $$
or, writing $n_1$ to denote the number of defective units,
$$\hat p = \frac {n_1}{n},\;\; \operatorname{\hat Var}(\hat p) = \frac {\hat p(1-\hat p)}{n} = \frac {n_1(n-n_1)}{n^3}$$
Using the normal approximation to the binomial, a $90$% Confidence Interval then will be
$$\frac {n_1}{n} \pm (z_{0.05}+0.5){\sqrt {\frac {n_1(n-n_1)}{n^3}}}= \frac {n_1}{n}\pm 2.15\frac {\sqrt {(n_1/n)(n-n_1)}}{n}$$
where to the critical value from the standard normal distribution, we have added the $0.5$ "continuity correction".
We want the $CI$ to not include negative values, so we require
$$\frac {n_1}{n} -2.15\frac {\sqrt {(n_1/n)(n-n_1)}}{n} >0 \Rightarrow n_1^2 > (2.15)^2\cdot (n_1/n)(n-n_1)$$
Manipulating, we want
$$ n_1n > (2.15)^2\cdot (n-n_1) \Rightarrow n_1 > \frac {(2.15)^2n}{n+(2.15)^2}$$
For large $n$, as will the case be, the right-hand side tends to $(2.15)^2 = 4.62$. Since $n_1$ is an integer, $n_1 > 4.62 \Rightarrow n_1 =5$.