Error when running dvc exp run TypeError: expected str, bytes or os.PathLike object, not NoneType

Problem

Hello guys when running dvc exp run , I got the following error TypeError: expected str, bytes or os.PathLike object, not NoneType logs are attached, do u guys got any clue?

Git branches

I got many branches on my git:
preprocessing: got some .dvc left over in previous commitbut but was deleted, as I was planned to use dvc before but didn’t meet my requirement
→ model (from preprocessing), all .dvc deleted

My attempt

I ran dvc destory on both branch but didn’t work

I tried to search online for solutions but failed

I also got this error on the vscode extension, I don’t know if they are related, I tried on the same machine with the same set of commands in an empty repo, it worked perfectly so I suspect maybe some issue with my git
image

[version: 1.2.27, 2025-08-30T21:09:01.543Z, pid: 4041215] > /home/jason/Code/medical/mypath/.venv/bin/python -m dvc exp show --rev bc4e231d65a2a2ce98b5d627a451d7149d62f692 --rev 85e4141cb3c29af1078639129f10b033f28c1259 --rev 1f4f46ba6058b6c90f34ffe766cc38d718f374fe --json - INITIALIZED
[version: 1.2.27, 2025-08-30T21:09:02.266Z, pid: 4041215] > /home/jason/Code/mypath/.venv/bin/python -m dvc exp show --rev bc4e231d65a2a2ce98b5d627a451d7149d62f692 --rev 85e4141cb3c29af1078639129f10b033f28c1259 --rev 1f4f46ba6058b6c90f34ffe766cc38d718f374fe --json - FAILED with code 1 (737ms)
ERROR: failed to show experiments - unknown Git revision 'bc4e231d65a2a2ce98b5d627a451d7149d62f692'

dvc run exp -vvv Log

log: 2025-08-31 05:00:51,106 DEBUG: v3.62.0 (pip), CPython 3.12.11 on Linux-6.8.0-78- - Pastebin.com

Please let me know if I need to provide any extra information, thanks a lot for helping me!