This has happened to others. Some people let/made the battery die completely, then recharged the device and the problem was gone.
I wouldn't do that. I'd return it for an exchange. You're paying for the phone, you should get a good one.
Sent from my HTC One using Mobile Nations mobile app