If you have a good friendship with them, you can even try directly saying, hey, I think you should try doing more of X instead of Y. And they should not feel pressured to do that, due to your friendship not being based in a power dynamic where they would feel in any way expected to follow your advice. This really should be low-stakes.
"Have you tried finding a few roles you like and are a good fit for and directly messaging the CTO/VP/whoever hires people, on Linkedin?"
Otherwise, try gently steering the conversation to a tangential topic where you can bring up "If I was looking for a job today I'd do ..." or "I hear that hiring managers are buried in SPAM applications..."
I kind of like the idea though about mentioning all the SPAM, but don’t say things that aren’t true, and don’t deliver this like it’s a carefully packaged message designed not to hurt them, because that can do more harm than what you’re trying to avoid. You’re a friend engaging in conversation, not the superior of a struggling person who needs coddling, and you don’t want your friend sensing that from the tone.
Friends are supposed to arrive at this kind of conversation topic proactively and naturally. Most often, spontaneously. This shouldn’t be a super special topic that carries an inordinate amount of gravity for the person who would mention what they’ve heard about how others solved this.