Found an issue in loki github repository mentioned similar error. Tried the config and it worked for me.
Maybe you could try this:
memcached_client: host: loki-loki-distributed-memcached-frontend.loki.svc.cluster.local service: memcache