Those classes need a bit more management when it comes to positioning. They need to be in higher terrain, far from melee enemies and have mobility spells available like misty step to be able to escape to places where the enemy has disadvantage against them. You can also use spells to increase their AC, or bless them, or you can make a wizard that is a Gith and get armor and weapon proficiencies.