I've never been disqualified but I also don't mix it up with whack jobs. If someone is driving erratically I either stay ahead or directly behind them.
Ahead of them I usually run late apex lines which usually causes them to aggressively attack the early apex and overshoot the exit. They are trying to dive bomb but it doesn't work if you're not there to get hit. Actually, I did that a bunch on Nurburgring GP yesterday, a lot of aggressive drivers were using my brake lights as their brake indicator and would freak out with how deep I was dragging them into a turn. So they would always hit their apex early with way too much speed and unable to retain position on the inside. Even if they pass you, it's usually an easy pass on the inside exit to regain position and they don't even have the traction to turn back into you. I didn't even realize I was doing it half of the time until I reviewed the replay and noticed how many drivers were fading too far wide on their turns behind me. These people were 1 second faster than me on the board but they just kept sabotaging themselves by driving too aggressively and off of the optimum line.
Behind an aggressive driver, you just stay tight and pressure them into an error. You're sort of using them like an offensive blocker as they bulldoze and fight forward while you continually feather and lift off of the throttle to stay out of the fight and right behind them. You will usually be drafting and moving faster than them so you have to be mindful of not rear ending them or dive bombing on the inside. Usually their fighting will put them out of position for a major turn (right before a long straight) and you can easily pass them.
If they are excessively aggressive you can intentionally put the nose of your car right along the middle of their car as you approach a turn. Resist the urge to pass and just keep the nose of your car hovering right in that sweet spot. If they try to slam the door and turn in on you they'll pit themselves and get punted off of the track with just a slight SR drop for you and no penalty.
Looking back, I know that sounds like I'm mixing it up with bad drivers but these are really just simple defensive tactics. Against a solid clean driver they're useless and these same moves would simply gift the pass to the faster driver without any incident. My late apex line allows for clean inside overtakes by better drivers and my pit tactic forfeits a potential pass on the inside when they're used against good drivers.