Difficulties authenticating with google drive

I have installed dvc-gdrive and I have added a remote gdrive repository. Upon trying to push to this repository I get the following error:

  0% Querying remote cache|                                                                                                                                                                                                                                                  |0/1 [00:00<?,    ?files/s]/scratch/fm4g20/envs/segmentation/lib/python3.12/site-packages/oauth2client/_helpers.py:255: UserWarning: Cannot access /home/fm4g20/.cache/pydrive2fs/710796635688-iivsgbgsb6uv1fap6635dhvuei09o66c.apps.googleusercontent.com/default.json: No such file or directory
Unable to connect to VS Code server: Error in request.
Error: connect ENOENT /tmp/vscode-ipc-8dc47f96-a8c7-40f5-b2b0-9660b7c16231.sock
    at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'connect',
  address: '/tmp/vscode-ipc-8dc47f96-a8c7-40f5-b2b0-9660b7c16231.sock'

Immediately after this, the program opens up a browser in the command line which quickly gives an error after it finds that the ‘browser’ doesnt support javascript. How can I authenticate with GDrive?

Try using service accounts Google Drive