So I did some digging and the reason why the file was really large was due to the images. The images were encoded into the JSON file which was the cause of the file size. There’s an export option to link the files separately rather than include them in the JSON file which will export the images in a separate file.
What I did was upload the individual images onto HubSpot and inside the script code where the image src is being referenced, I used the file path to redirect to those images.
This is the code snippet when exporting from Bodymovin.
<script>
var animationData = {"v":"5.8.1","fr":25,"ip":0,"op":200,"w":1920,"h":1080,"nm":"example_animation 2","ddd":0,"assets":[{"id":"image_0","w":639,"h":367,"u":"https://f.hubspotusercontent20.net/hubfs/000000/svg_animation/images/","p":"ImageName.jpg","e":0},
...
</script>
And to follow up with your answers, the custom module did work on that end, just pasting the code and dragging the module works. Another option I tried was pasting the code into a rich-text editor if a custom module has other assets around it.