I disabled JS Optimization, looked through the source and grabbed all javascript related to woocommerce, and added them to the excludes in the format:
"woocommerce.min.js,add-to-cart.min.js" etc...
I reenabled JS Optimization, saved, and googlebot still gets a 500 error.
I added the @ sign before $tmp_jscode on line 177, and fetched with googlebot, and still got the error.
I disabled JS Optimization and fetched with googlebot, success.
Strangely, It seems as though it's only googlebot that get's the 500 error. I can simultaneously browse the same exact page from my PC without any issue whatsoever.