The suggestion to buff DC's in favor of the caster is interesting. I'm open to that idea and I'll explain more below.
This issue exists for any ranged caster, not just warlock. Currently there is a condition know as "threatened", which has ranged attacks roll at disadvantage when an enemy is near. I've been questioning why a condition like threatened is in the game. Is threatened in the game to entice the player to use more spells? Is it there to entice the player to bunny hop away with their wizard?
> For example, an enemy encroaches on a wizard and the wizard now becomes threatened. (Firebolt will now roll at disadvantage)
> You go to use Poison Spray and most enemies have enough constitution to evade Poison Spray. Now the option to use is Magic Missile because it's unaffected by threatened.
Threatened feels like an unnecessary complexity. It makes ranged attacks more likely to miss and exacerbates all the benefits melee classes have now. Why play a caster, when ranger can just use spell scrolls, has more AC/HP, and can deal better damage in melee range?
Threatened would be a lot less of an issue if spells like Sacred Flame and Poison Spray were available 65% (or higher) to hit in more encounters.
Also, threatened could also just be removed from the game.