The speed (and odo) sensor is on the right front hub, and the wiring for same is rather exposed and subject to damage, so that's the most likely culprit. Easy enough to fix if you find a break. If you take the wiring loose, you can re-route it a bit to get most of it protected by the lower control arm and the upright. Long cable ties will be handy for this.
A bad speed sensor will also not allow the turn signal module to operate correctly, and your turn signals will not self cancel, among other issues.