I would think the easiest way would be to prepare it under an inert gas such as nitrogen. Perhaps prepare an initial solution at neutrality, bubble N2 through for a few minutes to de gas the solution. Provide a N2 cover and then add your excess ammonia.