Unable to run the command on mac terminal to solve the assignment

https://university.mongodb.com/mercury/M320/2021_December_28/chapter/Chapter_3_Patterns_Part_1_/lesson/5d13da3b04e9ff3e75e6a82d/lecture

refering to above class.

I am unable to resolve this fix because of the above error I am unable to solve this assignment.
https://university.mongodb.com/mercury/M320/2021_December_28/chapter/Chapter_3_Patterns_Part_1_/lesson/5c54c52cbe09bedd4f196f1a/problem

kindly tell me how to fix this issue.
to be more specific I am on MAC, M1 2020 model. I have tried on both zsh and bash terminal.

Thanks,

Check this link.It may give you some tips
Are you using correct binary appropriate for your os?
Is there any 32 vs 64 bit compatibility issues?

Validate_m320 –version