Hi Mohammad PATEL:
Thanks for reaching out to Microsoft Q&A.
From the error it seems the action to upgrade version has been triggered but its waiting and getting timed out. Can you check if you have any running processes which denies the upgrade to lock the resource and scale from S2 to S4?