Power switch doesn't make sense because it would happen regardless of power source.
Battery contacts also wouldn't make sense since the charge goes through the battery, from what I understand, to the phone so the problem should happen plugged in or on battey.
You can verify my assumption by...