Hmm, this is a longshot, but maybe one of the "shoulder" buttons is getting stuck in the down position when you flip the bike over, and that's causing the system to stay active and run the battery down? I'm talking about the buttons on the newer Di2 levers that are hidden under the hoods, sort of on the knobby part above the brake pivot.