Persistent bad decrypt Error with Credentials Even After Complete Environment Reset and Correct Encryption Key Configuration

I would delete the config file, and keep the env variable.

Since you gave a fresh start, it should work.

But here the LEGEND itself explains exactly this error you got.

Cheers!