SMB is added at a 1 to 1 ratio as expected gold by weight. If you expect 100 grams of gold, add 100 grams of SMB. SMB will foam when added to HCl regardless of anything else. The SMB is destroyed when added to the acidic solution. It decomposes into SO2 gas and sulfuric acid in solution. The SO2 is the gas that reduces the gold to metal. A very small amount of free nitric acid can be removed from solution but it is a very poor choice of chemical for the job. The action by which SMB will remove free nitric acid is the SO2 precipitates a little gold and the free nitric acid dissolves this small amount of gold back into solution and releasing NO2. It is not a very efficient method to use for the purpose.
First, you did not mention a stannous chloride test. How do you know gold was in solution? If your not testing, how would you know you precipitated all the gold that might have been there?
Heating the solution beyond the decomposition temperature will destroy the remaining SMB in solution driving out the excess SO2 gas. The HCl and decomposing SMB will make sodium chloride crystals form ( table salt, but don't eat it. ) Luckily, it is water soluble. By now, if you still have it, there should be a large amount of salt crystals in solution. Filter the crystals from solution and lightly rinse with a spray bottle. The salt will dissolve back into solution so use the water sparingly. Place the container with the crystals aside and test the solution with stannous chloride. A positive means you got lucky. A negative means you have to dissolve all the salt in warm water to find any of the lost gold. Add water, tap water will work. Warm and let all the salt dissolve that will dissolve. If there is still salt left behind, decant the solution into another beaker and test it with stannous chloride. It should be negative. Add fresh water and dissolve the rest of the salt. If there are solids that will not dissolve in water, add a little fresh HCl and nitric acid BY THE DROP AFTER THE SOLUTION IS WARMED. It should be too hot to touch comfortably with a bare finger. If there is metallic gold that drop from the original solution, it should react almost instantly. Add a drop and let the reaction happen until it stops and then add another. When you add a drop with no reaction, remove from heat and let it cool completely. Test the solution with stannous chloride. A positive means you have found the lost gold and it is safely in solution. Add ice to both chill the solution and dilute the solution. Wait for the ice to melt mostly and try the drop again. Only add SMB by the gram and stir until no more gold drops. Trying to test with stannous chloride right after adding SMB will give you a false positive so keep that in mind.