After not receiving a response, I started searching online and came across some articles like this one. I followed the method which is DISM and SFC scan, after doing this the problem got solved. Now I have no longer any issues while opening the power button. Anyway, thank you so much.