Unless you work in an incredibly close-knit field where everybody knows everybody else, this is a myth and it needs to stop propagating.
You can choose references from personal friends and co-workers that will stress your positive results. The company as whole will never say anything positive or negative for fear of legal reprisal. If you worked for a bad actor, then burn the bridge and don't worry about retribution via reference checks.