figuring out how to deal with toxic people by analyzing their enneagram and mbti,
This doesn't make much sense. Adolf Hitler was an ENFJ, a type that I know well, and most of these people have been anything but toxic in my life. So I don't think you can identify toxicity in a person from their personality type. Toxicity comes from corruption of the individual, and somewhere along the line, a failure to correct it.
So let's look back at things identified in the DSM-5 manual. Personality types and personality disorders are two different things. You cannot determine a person's personality type from their personality disorder anymore than you can tell a person's personality disorder from their personality type. That's just plain silliness. You should have asked me about this a long time ago and I could have saved you some time.
Incidentally, I'm familiar with eannagrams - I even have a book on this - and I consider this to be a non-science, which means hokum. So you're better off looking over your horoscope and star charts for better information (also hokum).
So-called "toxic individuals" have, over their years of existence, have learned to hide their toxicity very well, so it takes a seasoned expert to spot one of these people. They can be, from the DSM-5, "none-of-the-above." The DSM-5 does not identify such a thing as "toxic people". It only identifies disorders.
A person might be the sort that "brings you down", or criticizes you constantly, or is mean to you "just because". Whatever people do to others, they do because they get away with it and it benefits them. When it no longer benefits them, they have no choice except to change their behavior. Examples of non-benefit is rejection, blocking access to others, blocking access to the benefits associated with association. When you experience rejection of one sort or another, it is because someone else has established and enforced a "boundary."
That is, "when you step over this line, I will no longer allow you in my world."
My suspicion is that you've not established boundaries, or you're not enforcing them. This of course, can lead to loneliness, since, if you allow people to run over you, you'll lose your own sense of self-acceptance. At that point, sensing you're own "unworthiness" other people sense it as well and reject you out of hand.
The big word here is
BOUNDARIES. If you don't have these, and more importantly, don't enforce them, you won't have anything.
I'm the smallest guy at the gym. But I hang out and talk with guys twice my size, and they treat me with respect. If anyone disrespects me, they earn my rejection.
I think that the word, "toxic person" is a modern colloquialism for, "anyone you don't like." This might include "toxic masculinity", "toxic feminism", "toxic behavior", and so on.