For small and medium scale storage you are right. Which is why hydrogen for cars and even trucks is a bad idea.
Hydrogen at 0°C and 100 Bar (~10MPa) has a density of 8.3447 kg/m^3. It has an energy density of 120 MJ/kg. So about 33 kWh/kg. So you end up with 278 kWh/m^3.
Now of course you have to multiply this by the H2->Electricity efficiency. Let's be very pessimistic and take 0.6 or 60%, which is what a gas turbine plant can achieve today.
You end up with 166 kWh/m^3 of usable electricity per cubic meter.
One of many german gas storage facilities https://www.nafta-speicher.de/en/company has a volume of 1.8e9 m^3. That translates into 300 Terawatt-Hours of storage capacity for just this one facility.
It is not a limitation of the large storage facilities, which are just exhausted natural gas wells and work just fine with hydrogen.
The cost of outfitting one such facility with steel pipes that are not subject to hydrogen embrittlement is trivial compared to the cost for the electrolysis units etc.
Note that I am not a big fan of hydrogen at all. But large scale storage is one of its few redeeming qualities.
Germany has enough gas well storage to survive several months. This infrastructure is currently used for natural gas, but it can be repurposed for hydrogen.
I still think that commoditized battery storage will win in the end, but storage cost is not an argument against hydrogen.