That's why an EV's climate-control heat-pump system is so important. On my EV (and others too) it comes on to divert cooling to the battery compartment, while recharging with Fast DC. It may not eliminate the problem you described, but it helps minimize it.
My 2020 S, had a liquid cooling system ( which was new in 2019) for the batteries which used plate-based cooling system which was some kind of s shaped pipes than used a combination of water and ethylene glycol as the fluid was moved around the packs. Never even thought about the outside air impact at the time, as it was only the driving distance. The Model 3, Tesla switched to a manifold-based system that runs dedicated cooling channels between each row of battery cells. But , even gas cars, when you switch that AC on, or if its around 20 or below outside down goes the mileage.
Something I didn't know, " March-April: Refineries Switch to Summer-Blend Production "
"
Gasoline blends used in the summer months are different than the blends used in the winter. In the winter, fuels have a higher Reid vapor pressure, meaning they evaporate more easily and allow cars to start in colder weather. In the warm summer months, these evaporative attributes would lead to increased emissions and the formation of smog.
There are also more fuels to produce during the transition season. In the winter months, only a few fuels are used across the United States. However, because of various state or regional requirements, 14 different fuel specifications are required for the summer months. Refineries must produce enough fuel for each area to ensure there are no supply shortages, and that can complicate the production and distribution of fuels.
Summer-blend fuel is also more expensive to make than winter-blend fuel. First, the production process takes longer and, second, the overall yield of gasoline per barrel of oil is lower. These complexities add as much as 15 cents per gallon to the cost to produce these higher-grade fuels."