The issue with CCR is not that the CCR system is intrinsically unsafe (the system comes with bailout), but that CCR naturally encourages divers to go far beyond their natural limits.
OC diving means you've an absolute maximum time as measured by your gas limits (min gas) with the max time to surface. You know these because you've planned it in advance. These hard limits mean people will tend to not exceed the limits -- idiots aside.
CCR doesn't have those hard limits. Ignoring bailout, the difference between a 20m/60ft dive and a 90m/300ft dive is only the diluent gas mix used (helium for narcosis prevention, less oxygen). You could dive a 90m/300ft mix at 20m/60ft on CCR without issues. On Open Circuit this would require masses more gas for the greater pressure, a mix that's optimised for that specific depth, plus all the decompression gasses, e.g. a bottom stage and three deco stages -- that would not be acceptable for a shallower dive, even ignoring the excruciating costs. Similarly for overhead, a CCR is measured on absolute time on the loop, whereas open circuit is all about gas consumption.
CCR doesn't have a hard min gas limit, "many hours" of gas is available. The problematic main limit to CCR is the amount of bailout gas available. This is hard to plan and very easy to exceed. Bailout planning is very much a finger in the air guess of what the peril is, with the worst case being a CO2 hit. However, for other bailouts (flood, caustic, or temporary bailout), then it's much easier to plan around the TTS required. The good news is CO2 hits are very rare.
The real challenge with bailout is exceeding its limits, especially for deep dives or long penetrations. You could do 1000 dives, all exceeding the bailout limits... then one day you discover your limits.
Arguably CCR is safer than Open Circuit. There's more options and CCR divers should be fully trained, know the risks AND practice frequently. Especially in the first 200 hours or more.