
Kerx |

If either of those creatures is a Roc; Rocs can't be placed in a resilient sphere in the first place, it has a size requirement of large or smaller. Grapple doesn't include anything about moving the grappled creature into the same space so both situations end the grab by way of the line
"You create an immobile sphere of force around the target’s space to either trap or protect it, blocking anything that would cross through the sphere.

Colette Brunel |
What happened in my playthrough was that a roc was grabbing a PC, and a different PC used a resilient sphere on the other PC. We had no idea how to resolve the grab then; we did not know where the flavor text of resilient sphere started or ended, or indeed, what would happen if the sphere was created in such a way that it would have to cross something (like a grabbing creature's appendages).

Fuzzypaws |

While the sphere would certainly prevent a grab, I agree that it is very unclear what would happen to a grapple already underway. I would actually rule that the spell fails, following the precedent of all the other repulsion and barrier spells in the game's history that fail when forced against an opponent or when cast across an opponent's space.