It's a huge topic, the whole area of online abuse is a social problem, but also affected by technical features.
If you want specific tech points, some victims have requested reply controls and/or active moderation and/or allowlist federation.
-Reply controls are choosing who can reply to you
-Active moderation is where posts with certain keywords are automatically flagged for mods
-Allowlists mean choosing which servers to federate with, rather than which to block