Bad n8n credentials decrypt when running cron

We are facing the exact same issue. After upgrading up to 1.20 all of our credentials cannot be decrypted with error: Error: error:1C800064:Provider routines::bad decrypt

We use docker compose. Nothing change since the update. Only one server no workers and the encryption key is still the same.

Adding the key as env variable as described here also does not change anything: Provider routines::bad decrypt after upgrading to 1.18.0