Suddenly began switching between forward and reverse on its own at idle.
Would not stay in either. Luckily managed to get it to stay in fwd momentarily and give it gas and keep the revs up so got off the trail.
(sometimes giving it gas would simply switch it in opposite direction)
As soon as...