Hello Sanjana.
We have had similar questions to yours regarding installation on the newer Mac M1 & M2. It can be done. Here is a link to another forum ticket where we resolved it for a customer. Please refer to that for instructions on removing any failed installations and for new links to the appropriate installer for your Mac.
Best,
Kim