What you describe is standard practice.
There's a device that does exactly what you want and it's not expensive either. It's called a "fuse". Fuses are available for 30 amperes and many other amperages. It's a one-use only device, once you have blown the fuse you will need a completely new fuse. Fuses are cheap, buy at least 10 fuses of the amperage you need.
If you are planning to blow the fuse hundreds of times, then it might be useful to consider DC circuit breakers. The trouble with these is that interrupting high-current DC such as 30 amperes ain't easy. The current will want to continue, even through the air, creating a massive arc. DC does not have a zero-crossing like AC has that would be a natural moment for the current flow to stop. Any circuit breaker must be able to extinguish this arc, in a manner that doesn't cause the expensive circuit breaker to get damaged. (A self-damaging circuit breaker would only be a very expensive single-use fuse -- or worse, it could fail to stop the current flow.)
Think about welding. Does the arc when welding stop or does it continue? That's what DC circuit breakers are dealing with.
What makes interrupting the 30 ampere current somewhat easier is the low voltage, 12 volts -- you may be even able to use an AC circuit breaker at such low voltages (although if you really do so make a few tests to ensure they work safely when short-circuited with a huge fuse like over 100 amperes in series -- ideally with a safer battery chemistry than lithium-ion like lead-acid since short-circuiting lithium-ion isn't a good idea)! For higher voltages, it would be much harder. If you can find a 12 volt 30 ampere DC circuit breaker (or any voltage rating above 12 volts is fine but the current rating has to be accurate), you can consider using it but I suspect even if you plan to blow the fuse ten times, fuses would still be less expensive than a circuit breaker. Usually smaller fuses like 30 amperes are installed in a case making swapping the fuse very simple, not even needing a screwdriver. Larger fuses like 100 amperes may be attached with screw terminals to get a connection that allows high current without too much resistive drop.
Note also that 30 amperes should use 6 mm2 wiring. You may be able to achieve 30 amperes with 4 mm2 wiring without melting the insulator, but at 12 volts and 30 amperes, the voltage drop for long 4 mm2 wires might be just a little bit too much, and if the two wires are close in a hot environment, two 4 mm2 wires could still heat just a little too much for infinite insulator lifetime.