Storing hydrogen is hard because it's low density until it approaches absolute zero and is smaller than and embrittles the best materials we have to store it.
If batteries are a worry for replacement, imagine leaking embrittled pressure tanks that have to be checked every year and replaced sooner than every 5.
Hydrogen has a far lower boiling point (=volatility). Or did you mean how explosive it is? Hydrogen has a far wider range of explosive concentration than gasoline.
Autoignition point is lower for gasoline than hydrogen if you meant that, but the wide range of explosive concentrations for hydrogen seems like it would pretty much negate that safety benefit.
40kph cars slam into each other. gas leaks out, maybe eventually starts a fire.
meanwhile the hydrogen batteries, some already fragile, just explode. on the plus side the blasts and fire make the pile up a lot more visible.
I think range anxiety is already mostly a nothingburger and as battery capacity improves and people realize being limited to X miles is hardly a limitation for their use case at all, it will become a non-issue.
Using electricity directly is just easier and more efficient than transporting hydrogen that was made from electricity, unless for some reason hydrogen truly is more economic than battery for your use case.
The most immediate need (utility) for green hydrogen is replacing fossil fuels in the production of methane and ammonia. This must be done asap.
Once that hydrogen production and transport infra is in place, it'll be relatively easier to pivot to using H2 as a fuel.
In other words, electric batteries are a bridge (stop gap) tech on the road to our glorious hydrogen economy.