Bench switch-to-branch v3.x.x frappe erpnext --upgrade erorr

nonierp@doko:~/dokos-bench$ bench switch-to-branch v3.x.x frappe erpnext --upgrade
INFO: Fetching upstream unshallow for frappe
$ git remote set-branches upstream ‘*’
$ git fetch --all --unshallow --quiet
/‘error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)
error: 19455 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
error: Could not fetch upstream
ERROR:
Traceback (most recent call last):
File “/home/nonierp/.local/bin/bench”, line 8, in
sys.exit(cli())
File “/home/nonierp/.local/lib/python3.10/site-packages/bench/cli.py”, line 127, in cli
bench_command()
File “/usr/lib/python3/dist-packages/click/core.py”, line 1128, in call
return self.main(*args, **kwargs)
File “/usr/lib/python3/dist-packages/click/core.py”, line 1053, in main
rv = self.invoke(ctx)
File “/usr/lib/python3/dist-packages/click/core.py”, line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python3/dist-packages/click/core.py”, line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python3/dist-packages/click/core.py”, line 754, in invoke
return __callback(*args, **kwargs)
File “/home/nonierp/.local/lib/python3.10/site-packages/bench/commands/update.py”, line 93, in switch_to_branch
switch_to_branch(branch=branch, apps=list(apps), upgrade=upgrade)
File “/home/nonierp/.local/lib/python3.10/site-packages/bench/utils/app.py”, line 107, in switch_to_branch
switch_branch(branch, apps=apps, bench_path=bench_path, upgrade=upgrade)
File “/home/nonierp/.local/lib/python3.10/site-packages/bench/utils/app.py”, line 68, in switch_branch
exec_cmd(
File “/home/nonierp/.local/lib/python3.10/site-packages/bench/utils/init.py”, line 158, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError
nonierp@doko:~/dokos-bench$ /’

how to fix it

bench update --reset fix it