Here are mainly 3 reasons due to which you can view the Invalid cPanel License error.
1) Your server’s IP has changed.
2) Your cPanel license has expired.
3) Your license needs to be updated.
Please follow the below solution to fix this error.
Step 1: Check and verify that the License of your IP is still valid, you can check from the below link:: http://verify.cpanel.net.
Step 2: Insert your IP address and click Verify License.
Step 3: When you scroll down you will see the License History for your IP, please confirm that the status is active.
Step 4: Now Log in to the server through SSH.
Step 5: Run the below command: