If the engine in your pathfinder has a timing belt, I would take a close look at the valve timing. If one, or both cams have "jumped a tooth" on the belt the engine will not run right under a load, but may idle fine.
Just an idea, but i've seen it happen before.