This doesn’t seem to be a PyTorch-specific question, and I would recommend to ask on StackOverflow or maybe in the competition discussion board (if they have one) 
Based on your last post 1 it seems that the scaling is failing due to unexpected values, so you could look into the data and check all values for NaNs, Infs etc.