This happened to me when I was a teenager because I was interested in computer stuff from an early age and so people would see me as a free resource until I decided to charge them except to my very close family and actual best couple friends (who always wanted to pay me and I had to end up accepting couple beers in exchange anyway).
It all comes down to learning how to say no (in other words, setting boundaries) and only sacrifice your time for the people who deserve it. You don’t owe anything to most and if they stop talking to you because you didn’t want to work for free for them then they aren’t worth keeping around IMHO.
There’s nothing wrong about shedding people if they’re only giving you trouble even if you’ve known them for years so don’t be afraid to do so.