In any NPM or SAM version could you see this error, this is because after an upgrade and the Configuration Wizard don't finish successfully. Try re-ran the Configuration Wizard. I saw this error in my enviroment a few months ago and I re-ran Configuration Wizard ( 2 times) until this error stop appearing on web console.
If this don't fix your error try to open a Support Case.