How to solve error: zsh: illegal hardware instruction

Hi everyone!
I’m facing an issue while running my code. Whenever I run my code on Streamlit as streamlit run project.py it gives me the error shown below:

zsh: illegal hardware instruction streamlit run project.py

I have run my code on Streamlit a lot of times and it was working fine but all of a sudden this error occurred.
Please could someone help me solve this error.