This may depend on jurisdiction. UK buildings insurance usually covers subsidence (although it may then be difficult to sell the property, as any buyer will have difficulty getting their own insurance even after a repair)
I don't know specifically about mines or sinkholes, but I don't think they are generally excluded. However one difficulty would be that buildings are generally insured up to the value of the rebuilding cost, IE what it would take to put the building back after it was completely destroyed. But in the case of a mine or sinkhole, the land itself may also be unusable. In an expensive city the rebuild cost may be only a fraction of the cost of buying an equivalent home, including the land it sits on.
I don't know specifically about mines or sinkholes, but I don't think they are generally excluded. However one difficulty would be that buildings are generally insured up to the value of the rebuilding cost, IE what it would take to put the building back after it was completely destroyed. But in the case of a mine or sinkhole, the land itself may also be unusable. In an expensive city the rebuild cost may be only a fraction of the cost of buying an equivalent home, including the land it sits on.