I fixed it! Ok, so I had to "change max_allowed_packet size", and then re-import the product and all the hooks installed properly now. It's not broken any more!