This has happened to me on several occasions. It means that your body is burning muscle for fuel stripping the protein from it and breaking down the nitrogen. Sweat should not smell like ammonia. This has happened to me on the keto diet and low carb diets. So next time smell your sweaty shirt. If it has an ammonia smell to it, your burning muscle. Don't smell it several days later either