I have this exact same problem in my Model X. I set the charge current for 40 amps and to start charging at 12:00 am. When the car goes to sleep it resets the current to 23 amps. It used to be an intermittent issue, but with the latest software update it consistently does it every time the car goes to sleep when plugged in. This is not an issue with the charger or wiring, as it can manually be reset back to 40 if I start charging and it will stay there, this problem also does not occur on our model 3. If you figure out a solution I'd love to know, but as far as I can tell it's an annoying issue with the software