I can sort of imagine like a little program that tries to be smart and says "hey this thing is running and using a lot of CPU, and Chromium also wants a lot of CPU right now, so let me go ahead and renice this other process to lower its priority so Chromium can go faster". Or "gee the system is unusable because it is swapping, let me randomly kill stuff until it works again".
But I'm not sure there are a lot of options for that sort of userland tool, because being smart enough to do the right thing in those cases while not also doing a bunch of unexpected and possibly counterproductive stuff is hard. But maybe you can bolt a large language model to a root shell and see if it helps?
Really the kernel is supposed to just do the right thing all the time anyway. You might be able to find something that like changes your CPU governor when you go on and off battery? But mostly there are settings to tune like which CPU governor you want to be using or whether to compress stuff in RAM or how much the kernel should tend to swap stuff to disk, or what the fan speed ought to be at different temperatures, and if you want to make the system go faster you fiddle with those.
These are indeed reasons why people tend not to make friends as they get older.
But none of them are reasons why one couldn't make friends. All you need to do is find someone else who also wants to make friends, and then become friends. None of these make that actually impossible.