I discovered that the issue was due to the default language of the device. It was causing an invalid character error during the build process. Changing the system language to English resolved the issue, and the build completed successfully.