Out of memory doing push to remote repos

I’m using visual studio and unity to create a game. I’m new to github, but tried to follow some videos I found on utube.
I created a branch on my repository some time back. I believe I had several push actions that were successful. Now when I try to push, I get the following in the output window:
Opening repositories:
C:\Users\richn\Documents\projects\Unity\CurlingFirstTry
Pushing Curling3DSimMoveStones
Enumerating objects: 1985
Enumerating objects: 4120
Enumerating objects: 8170
Enumerating objects: 12739
Enumerating objects: 14005, done.
Delta compression using up to 16 threads
Warning: suboptimal pack - out of memory
Error encountered while pushing branch to the remote repository: Git failed with a fatal error.
Git failed with a fatal error.
Out of memory, malloc failed (tried to allocate 67108865 bytes)
the remote end hung up unexpectedly
the remote end hung up unexpectedly
the remote end hung up unexpectedly
failed to push some refs to ‘https://github.com/RichNoren/CurlingFirstTry.git

Failed to push the branch to the remote repository. See the Output window for more details.

I’m new to github so most likely I’ve done something wrong, can someone give me a starting point or some suggestions on how to fix this.

Hello!

The downside to Github Pages is the memory limit for hosted content. Published Github pages sites may be no larger than 1GB. Considering you’re developing a game (super cool by the way) I’m assuming it likely uses a lot of space.

If your project does take up more than 1gb of space, this might be the issue and you may need to consider another hosting service. I’m very unfamiliar with the game dev side of things though so apologies if this isn’t the issue/doesn’t help! I hope you find the answer you need either way