Nothing happens in NK without the PRCs tacit approval.
I think that’s the problem. I think even from China’s perspective, Kim is off the reservation. China wants NK as a buffer state against S Korea / U.S., but even they don’t want a nut case running the place.
And who knows, maybe Kim is thinking his nukes can also be used as a threat against China if they make noises to remove him.