I had a call from the bike shop yesterday and discussed whether the foam was intended as a short or long term solution, they believe Specialized is looking into developing a flap but this hasn’t been implemented yet due to concerns over condensation accumulation caused by the higher motor...
Had the same issue and a harness replacement was necessary under warranty. Apparently a clamp had been over tightened, damaging the harness. The shop mentioned this is a common problem on the 2019 models.