It appears you have about 321,112 ASVs (that is a lot!) with an alignment length of 424 positions. Generally, that should not be an issue for mafft. Perhaps you can privately share the sequence QZA file?
Also, does pipeline run with the normal ASV names? If you are able to get the pipeline run, then that'd imply that the modifications you applied generate invalid headers for mafft.
-Mike