I don't have custom kernel.
Both times this happened the battery was charging at below 30%, I came here to post and next time I checked it was already charged to 40% and it was back to normal so I'm guessing it may be a battery saving strategy or due to high temperature?