I once tried a very long USB cable with my 16x08 interface but it became a bit glitchy. I think it was about 12 or 15 ft. With a 3 ft cable, things are just fine. Oddly, the long cable worked just fine when I was transferring tracks from my AW1600. I'm not sure what the difference is between the USB in the Yamaha vs the Tascam, but it was apparent.
There are differences in the various cables. USB 3 cables have more wires, and are designed to reject interference, which lets them handle the higher data rates error free. With USB 4 hitting 40 to 80GBPS, you'll need a more high spec cable to take full advantage of that capability.