How to get out of Friend Safari

I’m stuck in someone’s friend safari and every time I try to leave I end up getting stuck in the wall. Any ideas on how to get out? I already tried fainting and that crashed my game.

Use the tablet. It’s a key item.

Use the “Leave Base” option in your tablet. You can find it in the key items.

Considering that OP is in another person’s base rather than their own, “Leave and return to your own base” is the only option they’d get if they use the tablet.