Mine did that once coming up a steep hill out the back of Newnes NSW in 2H on the tar. The hill is probably 500-600m long and steep with lots of sharp corners. All 20-30km/hr stuff. I just left it in "D" with O/D on and let it do its thing, but nearing the top it felt like it went into limp mode briefly. I'm thinking WTF! The car was basically empty. Next time I went up there I turned the O/D off and manually pulled it back to 2nd and had no issues. I've driven this hill a few times now with the latter technique with no issues, of late I've given it a fair booting up the hill to see if it was a heat related thing, no issues.
I've also drive some wicked hills in the Vic HC including 16 Mile Jeep Track (One of the longest steepest climbs I've been on) quite heavily loaded (no trailer) with no issues. O/D off and pull it back to 1st low range.
Coincidence or not, I don't know, but it works for me.