The cable's length should make no difference (over the size range you're talking about). Chances are that you got a bad cable. See if you can return it.
I've had good luck with the Amazon Basics Lightning cables -- two or three of them around the house and in the car, and they all work just fine. I haven't tried Monoprice, but they always make good stuff too.