The most likely cause of this error is due to Contract data being disabled on your Ledger device. Within the Ethereum application on your device, go to "settings" and then "Contract data" and switch it to yes.