Chosen Solution

I have a YAMAHA P45B, digital piano. Up until recently, my keyboard has been acting up. When I try to turn it on, the red power LED flickers non-stop and is completely unresponsive. However, I leave it with the power adapter plugged out, after about an hour, its working again. But when I turn it off and on after, the issue returns, LED flicker no sound. I’m only able to turn it on normally if I leave it with the power adapter plugged out for about an hour.

First name  sounds like something overheating on the power board. We really would need to see the boards. So, disassemble it and post some good pictures of your boards with your QUESTION. That way we can try to narrow it down. To work on your Keyboard, download the SM from here Page 60 and on will help you to check your boards. Adding images to an existing question