Recurrent OOM at InfluxDB startup

Hello,

I am running InfluxDB 1.7.8. While I was doing SELECT ... INTO ... query, my system went out of memory and OMM had killed the influxdb server. Now I see the following behavior: during startup influxdb starts consuming RAM more and more until it is killed again. I suppose it tries to recover the state related to the query, but will never succeed. How could I make my InfluxDB running again?