The things that cause the ammonia smell most often are dehydration, bacterial infection, change to high protein diet, menstrual cycle, or pregnancy. I am assuming the last 2 don't apply to you.
You could have multiple things combining to one outcome: protein + dehydration