Providers are offering fewer and fewer policies because of costlier climate-fueled fires, homeowners moving into riskier areas, and outdated regulation of the insurance industry.