Beginner Level 2

Hello guys when I charge my phone, the screen turns off and then back on every 20 seconds or so whilst charging, I have the J5 2016, can anyone help me?


Edit: I did some testing and it only happens on the current application you are on, so when you are on YouTube for example, it will flash black and then pauses the video you are watching, it's like it "resets" the application.