The FDA's actual statement on this:
Statement alerting patients and health care professionals of NDMA found in samples of ranitidine
For Immediate Release: September 13, 2019
Statement From: Director - Center for Drug Evaluation and Research, Janet Woodcock M.D.
The U.S. Food and Drug Administration has learned that some ranitidine medicines, including some products commonly known as the brand-name drug Zantac, contain a nitrosamine impurity called N-nitrosodimethylamine (NDMA) at low levels. NDMA is classified as a probable human carcinogen (a substance that could cause cancer) based on results from laboratory tests. NDMA is a known environmental contaminant and found in water and foods, including meats, dairy products, and vegetables.
…
When the agency identifies a problem, it takes appropriate action quickly to protect patients. The FDA is evaluating whether the low levels of NDMA in ranitidine pose a risk to patients. FDA will post that information when it is available.
Patients should be able to trust that their medicines are as safe as they can be and that the benefits of taking them outweigh any risk to their health. Although NDMA may cause harm in large amounts, the levels the FDA is finding in ranitidine from preliminary tests barely exceed amounts you might expect to find in common foods.
...
https://www.fda.gov/news-events/press-announcements/statement-alerting-patients-and-health-care-professionals-ndma-found-samples-ranitidine