iOS shows this error when the phone is locked to a carrier and won't accept eSIMs from other providers.
- Check Settings > General > About > Carrier Lock. If it doesn't say No SIM restrictions, your iPhone is locked.
- Ask the carrier you bought the phone from to unlock it. Most carriers do this once the phone is paid off.
- After it's unlocked, restart the phone and install the eSIM again.
If your iPhone is already unlocked, contact support with a screenshot of the error.