I noticed that the pallet just to your left when you enter the boss room is the best place to stone Nym-Foe, as it reactivates just in time for you to go through it, while simultaneously being just a long enough distance for Nym to navigate around to get to you and be stunned by it. Maybe that's a bit cheesy, but once I figured that one out, I got through it pretty easily.