It’s only unjust enrichment if the landlord receives rent payment from both you and the new tenant for the same period of time. A fee to terminate the contract is not rent even though the amount is based on the monthly rental amount.
Are the termination fee and terms listed in your lease.

