Damping of relativistic strong shocks in an expanding universe