You risk damaging the batteries and you make maintenance a pain in the ass. If you've got that amount of batteries, just put them on the ground the normal way.
I was thinking what if we used buildings built on jacks as our source of mass. Big one are largely built on pilings anyway, and even small ones on softer ground.
Going to be a lot of flexing though.
Nice thing is that some of the “inefficient” heat may be usable on-site: and you may get compressed air as an output that could be usable directly.
It’s amusing to think of whole houses getting jacked 100 ft into the air on giant stilts during the middle of the day when solar panels are operating, then slowly dropping to release the stored energy in the evening/morning.
I don't know how much a typical house weighs, but assuming 100t, raising it by 30m will give you potential energy of ... 8.2 kWh, or about $1.6 in today's electricity rate.