Sorry for posting multiple times.
I solved it myself.
To authenticate the keystore on Apple Silicon, you need to install Rosetta. I noticed this because I switched from Intel to Apple M4.
However, this explanation does not seem to be in the Solar2D tutorial. I think it is necessary to add this explanation for new Solar2D users.
In the M4 Mac terminal,
softwareupdate --install-rosetta
All keystores now worked without any problems. The build was also successful.
Sorry for the fuss.