DNS goes offline after a few hours

[2020-05-26 10:45:31.415 629] Listening on port 4711 for incoming IPv4 telnet connections
[2020-05-26 10:45:31.415 629] Listening on port 4711 for incoming IPv6 telnet connections
[2020-05-26 10:45:31.415 629] Listening on Unix socket
[2020-05-26 10:45:31.416 629] Reloading DNS cache
[2020-05-26 10:45:31.416 629] Blocking status is enabled
[2020-05-26 10:45:31.435 629] INFO: No regex blacklist entries found
[2020-05-26 10:45:31.436 629] INFO: No regex whitelist entries found
[2020-05-26 10:45:31.438 629] Compiled 0 whitelist and 0 blacklist regex filters in 7.9 msec
[2020-05-26 11:11:00.011 629] Shutting down...
[2020-05-26 11:11:00.589 629] Finished final database update
[2020-05-26 11:11:00.591 629] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[2020-05-26 11:11:00.591 629] ---------------------------->  FTL crashed!  <----------------------------
[2020-05-26 11:11:00.592 629] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[2020-05-26 11:11:00.592 629] Please report a bug at https://github.com/pi-hole/FTL/issues
[2020-05-26 11:11:00.592 629] and include in your report already the following details:
[2020-05-26 11:11:00.592 629] FTL has been running for 1530 seconds
[2020-05-26 11:11:00.592 629] FTL branch: master
[2020-05-26 11:11:00.592 629] FTL version: v5.0
[2020-05-26 11:11:00.592 629] FTL commit: 3d7c095
[2020-05-26 11:11:00.592 629] FTL date: 2020-05-10 18:58:38 +0100
[2020-05-26 11:11:00.592 629] FTL user: started as pihole, ended as pihole
[2020-05-26 11:11:00.592 629] Compiled for armhf (compiled on CI) using arm-linux-gnueabihf-gcc (Debian 6.3.0-18) 6.3.0 20170516
[2020-05-26 11:11:00.592 629] Received signal: Segmentation fault
[2020-05-26 11:11:00.592 629]      at address: 0x76f6b000
[2020-05-26 11:11:00.592 629]      with code: SEGV_MAPERR (Address not mapped to object)
[2020-05-26 11:11:00.592 629] Backtrace:
[2020-05-26 11:11:00.592 629] B[0000]: 0x4888e4, /usr/bin/pihole-FTL(+0x238e4) [0x4888e4]
[2020-05-26 11:11:00.593 629] B[0001]: 0x76d9b130, /lib/arm-linux-gnueabihf/libc.so.6(__default_rt_sa_restorer+0) [0x76d9b130]
[2020-05-26 11:11:00.593 629] B[0002]: 0x4800ea, /usr/bin/pihole-FTL(DB_save_queries+0x129) [0x4800ea]
[2020-05-26 11:11:00.593 629] B[0003]: 0x483898, /usr/bin/pihole-FTL(DB_thread+0xbb) [0x483898]
[2020-05-26 11:11:00.593 629] ------ Listing content of directory /dev/shm ------
[2020-05-26 11:11:00.593 629] File Mode User:Group  Filesize Filename
[2020-05-26 11:11:00.593 629] rwxrwxrwx root:root 140 .
[2020-05-26 11:11:00.593 629] rwxr-xr-x root:root 4K ..
[2020-05-26 11:11:00.593 629] rw------- pihole:pihole 4K FTL-per-client-regex
[2020-05-26 11:11:00.593 629] rw------- pihole:pihole 4K FTL-dns-cache
[2020-05-26 11:11:00.593 629] rw------- pihole:pihole 29K FTL-overTime
[2020-05-26 11:11:00.593 629] rw------- pihole:pihole 20K FTL-upstreams
[2020-05-26 11:11:00.594 629] rw------- pihole:pihole 12 FTL-settings
[2020-05-26 11:11:00.594 629] ---------------------------------------------------
[2020-05-26 11:11:00.594 629] Thank you for helping us to improve our FTL engine!
[2020-05-26 11:11:00.594 629] FTL terminated!
[2020-05-26 11:11:00.594 629] 1.530234e+03 s! ##########
[2020-05-27 12:27:32.952 641] Using log file /var/log/pihole-FTL.log
[2020-05-27 12:27:32.952 641] ########## FTL started! ##########
[2020-05-27 12:27:32.952 641] FTL branch: master
[2020-05-27 12:27:32.952 641] FTL version: v5.0
[2020-05-27 12:27:32.952 641] FTL commit: 3d7c095
[2020-05-27 12:27:32.952 641] FTL date: 2020-05-10 18:58:38 +0100
[2020-05-27 12:27:32.952 641] FTL user: pihole
[2020-05-27 12:27:32.952 641] Compiled for armhf (compiled on CI) using arm-linux-gnueabihf-gcc (Debian 6.3.0-18) 6.3.0 20170516
[2020-05-27 12:27:32.952 641] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
[2020-05-27 12:27:32.952 641]    SOCKET_LISTENING: only local
[2020-05-27 12:27:32.952 641]    AAAA_QUERY_ANALYSIS: Show AAAA queries
[2020-05-27 12:27:32.952 641]    MAXDBDAYS: max age for stored queries is 365 days
[2020-05-27 12:27:32.952 641]    RESOLVE_IPV6: Resolve IPv6 addresses
[2020-05-27 12:27:32.952 641]    RESOLVE_IPV4: Resolve IPv4 addresses
[2020-05-27 12:27:32.952 641]    DBINTERVAL: saving to DB file every minute
[2020-05-27 12:27:32.952 641]    DBFILE: Using /etc/pihole/pihole-FTL.db
[2020-05-27 12:27:32.952 641]    MAXLOGAGE: Importing up to 24.0 hours of log data
        [2020-05-27 12:27:32.952 641]    PRIVACYLEVEL: Set to 0
[2020-05-27 12:27:32.952 641]    IGNORE_LOCALHOST: Show queries from localhost
[2020-05-27 12:27:32.952 641]    BLOCKINGMODE: Null IPs for blocked domains
[2020-05-27 12:27:32.953 641]    ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
[2020-05-27 12:27:32.953 641]    DBIMPORT: Importing history from database
[2020-05-27 12:27:32.953 641]    PIDFILE: Using /var/run/pihole-FTL.pid
[2020-05-27 12:27:32.953 641]    PORTFILE: Using /var/run/pihole-FTL.port
[2020-05-27 12:27:32.953 641]    SOCKETFILE: Using /var/run/pihole/FTL.sock
[2020-05-27 12:27:32.953 641]    SETUPVARSFILE: Using /etc/pihole/setupVars.conf
[2020-05-27 12:27:32.953 641]    MACVENDORDB: Using /etc/pihole/macvendor.db
[2020-05-27 12:27:32.953 641]    GRAVITYDB: Using /etc/pihole/gravity.db
[2020-05-27 12:27:32.953 641]    PARSE_ARP_CACHE: Active
[2020-05-27 12:27:32.953 641]    CNAME_DEEP_INSPECT: Active
[2020-05-27 12:27:32.953 641]    DELAY_STARTUP: No delay requested.
[2020-05-27 12:27:32.953 641]    BLOCK_ESNI: Enabled, blocking _esni.{blocked domain}
[2020-05-27 12:27:32.953 641] Finished config file parsing
[2020-05-27 12:27:32.999 641] Database version is 5
[2020-05-27 12:27:32.999 641] Database successfully initialized
[2020-05-27 12:27:33.069 641] New upstream server: 127.0.0.1 (0/1024)