The cause is this: A 5 liter engine is a small engine and it needs to spin pretty high RPM to make power.
The higher an engine spins the more power it will make up to it's redline limit. Your little engine will shift down to make more power to pull a hill. It reaches what ever RPM the OEM sets and it will shift into a higher gear. It does not have enough power to pull that gear so it starts to lose speed. When it loses enough speed and RPM, it will down shift and the whole cycle will start over again.
About the only way to fix your truck is by locking the high gear out so it can't go into it. Or put a supercharger on the engine so it makes a lot more power at a lower RPM.
The first one is a lot cheaper.