Judging by the new TAS path through Sandopolis 1, you should be able to duck, release duck, immediately jump to the right, and even though the level doesn't wrap and the screen will scroll the correct way, you should get a brief amount of time with the top of the barrier offscreen so that you can pass through it.