I spoke too soon. I think it's something to do with the charging port. I think there's a short or something. It's been doing it off and on for the last couple of days. Getting a new phone tomorrow.
This started happening to my phone randomly this morning (5s) for no apparent reason. I installed the latest iOS and SO FAR it seems to be working.... Time will tell I guess!