Preventing encoder-decoder mismatch when energy values are too large to be