Filebeat restart repeatedly with throwing out of memory in runtime

Could you share the output part of your config file and share the full logs from filebeat? How many log files are in the platform directory?