I had something follow me once for about 3 miles while elk hunting in NM. I couldn’t get a clear view of it because of the thick trees but I kept seeing movement through the trees with the light at the top of the ridge.
It was probably just a bear, the only thing though that always pops out in my mind is that in areas where I got out of the trees to cross scree fields, whatever was above me was knocking lots of rocks down towards me, not like throwing rocks but whatever was up there wasn’t trying to not knock rocks off.
Also, all the black bears I ever encountered in NM always absolutelynhauled ass away from me, usually to the point all you would see was a black blur flying by.
Now that I think back though, to enforce the idea that whatever followed me was a bear, that year there were lots of bear encounters, one even dragged a lady out of her tent. I forget why but something to do with a short winter or not enough food for them I don’t really remember. What I do remember was a pretty scary hike.