Millions of high-grade face masks used in the NHS have been withdrawn because they may not meet correct safety standards.