It seems like when people with pain decide to share what they're going through, they aren't looking for solutions -- they just want people to know what's happening and that their experience in that moment is affected by it, and they want you to understand that.
I think this mindset is especially hard for people with a technical background to grasp because they are natural problem solvers and they will immediately switch to problem solving mode.
Instead of trying to solve the problem (which is not what the other person needs), they'll be able to connect better with the other person by empathising with them, validating what they are feeling and deferring to them for what to do next.