Zsh: bad CPU type in executable: mongo

What is your default shell?
If it is not zsh try to switch to it and try

If you are in zsh then it could be version compatibilty issue like [steevej-1495] mentioned.
In some cases 32 bit vs 64 bit also cause issues
Check this links.May help

https://discussions.apple.com/thread/250777998