In life people hurt you, and in death there are no guarantees. Death could be even worse.
I guess the best way is to equip yourself with the skills to allow yourself to be protected to a certain extent. Also, there are people that won't hurt you, it's just finding them.
This is a really crappy answer because, well, it just is. I don't know anywhere that is hurt free. The only way would be to become a total recluse, all by yourself, no internet, contact or anything with anyone, but that would be very lonely and totally impractical.
My best advice is to get some support, professionla support, because they can help you deal with past pain, and give you the mental tools to deal with any future pain you may come across.