It might be that you have a mistaken view of cave dwelling.
Most such settlements only used relatively shallow rock-face caves, which eliminates the majority of your listed risks.
Without reliable light sources, you'll appreciate that people weren't delving kilometers deep into the ground. Caves were simply a way to protect from the elements and to provide a choke point to better defend against wild creatures.
You are utterly delusional.