Regarding the error that was occurring when pushing to git. This was as the error message said due a large file in my commit. Note that I had 5 commits to push.
However with thanks to a helpful guide (How can I remove a large file from my commit history? - DeployHQ), I was able to resolve this issue with the following command (you may need to alter the file path, please use with caution):
git filter-branch --force --index-filter \
'git rm --cached --ignore-unmatch src/extensions/documentation/documentation/1.0.0/full_documentation.json' \
--prune-empty --tag-name-filter cat -- --all