I followed the exact steps here:
https://docs.amplify.aws/react/start/quickstart/
At the end of step 2, I get this error:

I cannot seem to figure out what the problem is as it doesn't give any details.
I then tried the NextJS version to see if that would work and it does the exact same thing (https://github.com/aws-samples/amplify-next-pages-template/).
I have logged this in Discord but no one is responding yet:
https://discord.com/channels/705853757799399426/1241041148399718551