Error="cannot allocate memory" leading to crash

You probably want to review your memory settings for InfluxDB v2.x, see this similar question and answer for more information: Influx 2.6 using all memory of server total memory is 256 Gb