Smush CDN breaks site

When I’m enabling Smush CDN, it breaks my site by injecting extra <script> </script> tags into JS code.

How can I fix this?