Putting a "random" encounter that didn't exist five minutes earlier in the path of your players, knowing it will be a TPK, is the DM version of murder hobo-ing. You're ignoring the logic of the game and the feelings of the other players so you can have fun killing things. You're not fixing the problem, you're becoming part of it.