This has been resolved - when these values are in the .env config with double quotation marks e.g. "<client-value>" instead of <client-value>, it reads it incorrectly.
I was able to check the tokenResponse and it passed in '"<client-secret>"' for the msalConfig instead of "<client-secret>"