The problem is that the sun produces only so much energy per square unit of the earth’s surface. The only way to increase the energy per demand is to allocate more acreage to solar farms.
Yes and no.
H2 can be stored in various forms. As the solar energy is cumulative, it becomes possible to store vast amounts of energy.
H2 gas has a tendency though to embrittle its containment. There are ways to store H2 though that do not embrittle its containment.
H2 containers become the focus and the cost therein.
According to https://en.wikipedia.org/wiki/World_energy_consumption the total energy production in 2015 was 168,519 Trillion watt hours. Divide that over the entire year and the entire surface of the Earth and you need to harvest 0.15 watts / square meter. Solar energy is about 1000 watts / square meter. We aren't close to needing to pave the Earth with solar panels.
That needs to be adjusted for cloud coverage and conversion efficiency, but there is still a lot of room.