Is it unsafe to use an appliance that infrequently trips its circuit?
My guess is that the range is tripping the main breaker due to a marginal switch.  Either that, or it depends on some combination of burners operating simultaneously in combination with some wiring fault in the range.

It probably is not safe, so I would discontinue using the range until it is fixed.