If the server exceeds the license's RAM limit, the license will not work; you should receive an error message.
You can either decrease the server's RAM, or you can upgrade the license to a type that supports the amount of RAM your server has.
Learn how to upgrade your license here: https://store.litespeedtech.com/store/index.php?rp=/knowledgebase/76/How-do-I-upgrade-or-downgrade-my-license.html