On unsolicited advice: if it’s unclear what a person needs from you, consider asking.
Ask yourself first. Are they venting & need validation? Is your advice or opinion called for?
If unsure & advice is burning a hole in your mental pocket, seek their consent.
Most direct: “Would advice be helpful right now?”
Open ended: “How can I help?”
Less direct/low pressure: “I have thoughts on possible solutions, if that’s something you’re looking for.”
Accept no for an answer (no answer means no).