Default Power button going crazy

Ive read about others having the same problem I have.
My power button acts like if it was being randomly pressed from time to time. Sometime it does it really often like every second.
And it doesn't work if I press it
It's just like if it was randomly pressed when I don't touch it, making my phone pretty much unusable.
I'm fairly sure it's hardware related cause if I turn my phone off, it will power on by itself in a few seconds.

Any solution?