How to fix header after using JS Minify?

So I am currently using a block builder inside Wordpress, not a page builder. And for some reason when I use LiteSpeed Cache to minify JS it completely damages the header. Any suggestions on how I can fix this?