I presume there are a zillion ways to prevent this from leaving if people really cared.
"The provisions of Articles 34 and 35 shall not preclude prohibitions or restrictions on imports, exports or goods in transit justified on grounds of public morality, public policy or public security; the protection of health and life of humans, animals or plants; the protection of national treasures possessing artistic, historic or archaeological value; or the protection of industrial and commercial property. Such prohibitions or restrictions shall not, however, constitute a means of arbitrary discrimination or a disguised restriction on trade between Member States."
https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX%3A...
They may be meant to apply globally, but 'violating' one doesn't mean anything if it's not more than a rousing speech. (i.e. not an international treaty that the UK's signed.)