It is 18 GBytesThat's a new one. It looks like something in your install architecture is scrambled. Obviously EtreCheck is running wild with 30 minutes of runtime and 27 GB of memory. It's obviously the install system that's causing it. You shouldn't have all of those duplicated in your install history. Plus, when the operating system is tracking its own analytics, it's reporting heavy CPU usage from system_installd and installd.
I have seen similar problems in the past, but never to this degree. If the system install file was really huge, it could cause EtreCheck to slow down and consume lots of RAM because it would read the entire file into memory and parse it with a DOM parser. I changed that to use a SAX parser which definitively fixed the problem. EtreCheck only looks at installs in the past 60 days, so it can churn through a huge install XML file pretty quickly.
In your case, that isn't helping. You seem to have lots of duplicate entries in your install history. I don't know why. I've never seen that before. The install history is this file: "/Library/Receipts/InstallHistory.plist". Apple plist files are just a special syntax of XML. This file is typically only a few KB in size. How big is yours?
You might need to delete that file and then restart your computer. You'll lose your install history, of course. But other than that, it shouldn't cause any ill effects. And it should definitively fix this problem, both in EtreCheck and in your system startup.
-rw-rw-r-- 1 root admin 18733261205 May 26 22:36 /Library/Receipts/InstallHistory.plist