It’s a major firmware bug and also it’s very annoying thing. When you try to charge your device while headphone on, your device may have this bug. Solution is very easy. Remove right speaker cap and four screw from unit. After that disconnect the Li-on battery from the unit for a while. When the battery disconnected try to turn on your unit. Then you can connect battery connector. That is the solution.
Enjoy!