With "in"/"inside" and "out"/"outside", these are really difficult. I'm sitting here thinking about how to answer, and I can come up with so many examples where each pair can be used interchangeably, but also many examples where they can't. Maybe the best I can do is give some of those examples.
An object can be in the house, or inside the house, or out of the box, or outside of the box. You can be in your own head or inside your own head [meaning you're thinking really deeply and you don't notice things happening around you]. You can be out of the group and outside of the group.
You can get in the bed, but not inside the bed. You can get in trouble or out of trouble, but not inside trouble or outside of trouble. You can get in a rage, but not inside a rage. You can run out of bounds [like in sports], but not outside of bounds. You can be on in a million, but you can't be one inside a million. You can be out on the town [meaning you are running around town and enjoying many activities], but you can't be outside on the town.
I could keep coming up with examples, but I can't see an obvious pattern. It feels highly contextual to me. It might be one of those things where you have to practice by listening to English-speakers and just copy how they say them.