Error in submodule push in main repo



When I try to git push a submodule the following the error is showing in console.

/g/sc-xxx-xxx on master ⨯ sudo git push origin master 15:51:29
Counting objects: 2, done.
Writing objects: 100% (2/2), 9.87 KiB | 9.87 MiB/s, done.
Total 2 (delta 0), reused 1 (delta 0)
remote: error: object 2082b19e25c25c643611639530a8570d0ff65f5c: gitmodulesPath: disallowed submodule path: --force
remote: fatal: fsck error in pack objects
error: remote unpack failed: unpack-objects abnormal exit
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to ‘