Restore power button to default behaviour
Just go full stock with a factory flash. See if the problem is present then. If it is, it is a hardware issue, and you can claim warranty. If it works, be a lot more careful with your apps next time.