As for toppling even at zero friction:
If the blocks turns the CM must travel faster than the bottom edge around it topples. So something keeps back the edge in contact with the slope. If there is no friction, nothing keeps it back.
I would analyse the problem (sliding and toppling over) in an accelerating frame of reference. Just before the possible toppling, the CM travels with acceleration g(sinθ-μcosθ). There is an inertial force Fi acting backwards, parallel with the slope. Its lever arm is b/2.
The force of gravity G turns the block clockwise. The lever arm is
c. You get it from the blue triangle. Gravity would topple the block, but the torque of the inertial force keeps it back. What is the condition that the block topples, with given a,b; θ, and μ, supposing that it slides, that is, μ<tanθ?
View attachment 74937