Probably the power button is worn out from being clicked too much.
Replacing the power button assembly should fix the problem.
Here is parts and guide if you need it:
https://www.gearbest.com/cables-adapter/pp_186156.html
https://www.youtube.com/watch?v=TSLRc0n6pec