A foundation won’t “tip” just because the bearing resistance of the soil under portions of the slab are different. The shape and stiffness of the slab is used to distribute the load such that it is less than the bearing capacity of the soil.
Example: Take a square building on a floating...