Unfortunately, acid that contains gold looks the same to the human eye and working without any indication of how much gold, if any, is in solution will undoubtedly cause losses. Working with stannous chloride the refiner has an instantaneous indication of gold in solution while using only a single drop. And it is sensitive down to parts per million. So if nothing else, make some stannous chloride solution and do some familiarization tests to see how it works.
My guess what happened is you are using too much nitric acid, right off, I would lower the nitric ratio from 3 parts Hydrochloric Acid to 1 part Nitric Acid
down to 4 parts Hydrochloric Acid to 1 part Nitric Acid. This is effective because the reaction is condensed which essentially recycles a percentage of your nitric acid.
The urea is not consuming any free nitric acid, so using more nitric than necessary tends to leave the solution active after urea additions and can re-dissolve gold after you drop it with metabisulfite. If you use stannous chloride you can detect this instantly. Sulfamic is a better option but many people worldwide use urea effectively.
The tumbler plants also do not heat the solution. A heated dissolve allows free nitric to "burn off" and you can heat it until it stops blowing red fumes as an indication. You do not have this option.
You will have to rely on slow additions which allow the urea to work. Too much can cause excessive crystallization and hold up gold in the crystals. I assume you are adding the urea and dropping the gold in one of these?
View attachment 62649
you should slowly add urea and allow it to mix in. It will foam up violently with excessive additions. Add a little and wait for a reaction to subside. Then add a little more and wait. When you have added enough you will see the prills of urea start to float. That is when you stop.
Next you add the metabisulfite, again slowly with mixing. If the solution starts to blow red fumes that is only the excess free nitric acid burning off as the gold you just dropped re-dissolves. Not a problem, these slow additions will consume all of the free nitric and then the gold will drop and stay dropped.
If the gold alloy was from jewelry or had a percentage of copper in it the acid will be a green color. When there is gold in solution it affects the color and it starts out a brighter green and when the gold is out it is a dull green. Seeing this is something you learn and observe from doing it often enough, it never takes the place of testing with stannous chloride. When all of the gold is dropped, and your stannous chloride test is negative, the solution is dropped out the bottom of the vessel into the filter trolley to separate the gold from the spent acid.
View attachment 62651
When the filter removes all of the liquid the gold should look like this.