eSIMs can only be installed on devices that are both eSIM-compatible and network unlocked. Please contact your mobile carrier to unlock your device.
Also, if your device was just unlocked, your carrier may have disabled eSIM support for a period of time for security reasons.