Robust Parameter Estimation And Pivotal Inference Under Heterogeneous And Nonstationary Processes