To add to this, the Error Recovery Control is not always supported on drives that are not meant for NAS.
The older ATA standard only included a volatile setting, meaning it did not survive a power cycle. The newer standard offers a non-volatile ability, but it requires the command to be a bit different.
For Linux the smartmon tools package has smartctl, which can be used to view and change the settings. But I am almost certain it only changes the volatile setting, meaning you would need to run the command at every boot up to set the setting. You would need to test to verify this.
https://www.ixsystems.com/community/thr ... ive.27126/