In the future, it would be advisable to keep a certain distance. Getting too close can lead to disasters.
The friendship between you is quite fragile in the face of interests, and you both feel uncomfortable with each other.
Moreover, don't make yourself seem so cheap. Just because someone asks you for help, you rush to offer it. While others are just talking casually, you're more than willing to oblige.
Spend more time on research and study, and delve into knowledge. Other things have nothing to do with you. Why waste your time on them?
If no one else values you, you should cherish yourself even more. You are a wonderful person. The discomfort you feel is real. Don't dwell on it or get involved.