Normally in a game like this you would make the ground immovable. Instead place it within a frame of immovable objects with a little wiggle room. Then each tick apply a small impulse to the ground, alternating between left and right.
Quick example dropbox.com/scl/fi/rfd2d94o40kj5tumygkzj/EarthquakeDemo.c3p