(puts on pip maintainer hat)
I’m not on a Windows machine so I can’t verify this easily, but pip does try to detect that the path is too long and raise a more suitable error in this case:
If this isn’t working, please file a bug report. I wouldn’t be surprised if something has broken this in the last four years since this was added to pip.