I have been training in BJJ for more than two years, and I can tell you that body triangles should be the least of your worries. If you want to prevent one you can turn onto your side and trap your opponent's leg to prevent a body triangle. There is no submission directly from body triangle, so it's not much of a problem. To escape, follow these steps, QUICKLY:
1: If the triangle is not facing up (because most people in back control fall to one side), use your leg as a pendulum and swing so that the triangle is on the top side and your body weight is on the bottom leg.
2: Shuffle your legs so that they are directly under the figure-4.
3: Wrap your outside leg around the leg that isn't wrapped around your body so that their calf lies in the crook of your knee.
4: Position your body so that their leg is parallel with your center line. This is important.
5: Lay the foot of your unused leg on top of the other foot to form a sturdy post.
6: This is where it gets painful for your opponent. Drive your hips straight up towards the sky, while at the same time driving your feet into the ground. This should get your opponent to tap out very quickly.