Failure-Resilient Distributed Inference with Model Compression over Heterogeneous Edge Devices