Sweden and Germany have phantograph-powered semi-electric trucks [1] that would make this less of a factor. The trucks do the bulk of their driving off grid power with batteries for exits/lastmile components of the drive.
I feel setting this up and maintaining is far more expensive than extra batteries. Maybe it does enable some new possibilities tho so might be worth it.
[1]: https://www.carsguide.com.au/oversteer/phantograph-scania-tr...
Tom Scott video on the subject: https://www.youtube.com/watch?v=_3P_S7pL7Yg