i'll add that this happened to me in a rejection playthrough, so i believe what determines whether or not this occurs is most likely unrelated to which path you chose.
i was able to grab the portal at the edge once, but i then got the same hellish portal placement the moment the third room looped back, meaning i have to execute touching the out of reach portal twice in the same fight...