I assume this unethical order would lead to jail time or at least, ruining your career? You are right. Getting fired is hard, but it is better to get fired than into those troubles. I am sorry for your condition.
Is it possible for you to document that order and that disturbing statement? Maybe those could be a proof for the Chief and QA manager. And maybe give them an example of similar orders that lead to the jail time? The unethical orders would ruin the company too.