I am not aware of a mod that addresses roof collapse. You can help rimworld wiki by expanding it. You can avoid a collapse by either not mining the whole thing or building a wall to support it.