Gitlab push (both SSH and HTTPS) result in 500 error

When using either command prompt or VS Studio, I can clone my repo on the self-managed gitlab instance just fine. However, when I edit some code and try to push I retrieve a 500 error. Here is the exact error:

Failed to push to the remote repository. See the Output window for more details.
Pushing main
Warning: ----------------- SECURITY WARNING ----------------
Warning: | TLS certificate verification has been disabled! |
Warning: ---------------------------------------------------
Warning: HTTPS connections may not be secure. See Git-Credential-Manager-Core/netconfig.md at main · microsoft/Git-Credential-Manager-Core · GitHub for more information.
Error encountered while pushing to the remote repository: Git failed with a fatal error.
Git failed with a fatal error.
unable to access 'https://gitlab.myinstance.local: The requested URL returned error: 500

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

I used a self-signed certificate for the instance, and disabled TLS verification since everything is on an internal network. This is the command I used:

git config --global http.sslVerify false

Before using that I couldn’t pull the repo either, it gave me another 500 error. Does anybody have any thoughts on how to solve this?