In drug-tested sport, the athlete is responsible for anything found in their sample, whether it came from a contaminated product or not. Supplements are a known route to inadvertent positive tests.
What reduces the risk:
Use only what you actually need; every extra product is extra risk
Choose batch-tested products from third-party schemes such as Informed Sport, NSF Certified for Sport or the Cologne List
Be most careful with pre-workouts, “fat burners”, muscle builders and products bought from unknown online sellers
Keep receipts, batch numbers and a sample of what you take
Testing lowers the risk but cannot remove it entirely.