It's 100% bacteria and mold in the hvac condenser case - I had the same issue on my 2021 Yukon and now it just started on my 2023. It always happens after a few cold months, usually mid-winter or in the spring. I used a product called "Klima cleaner pro" and sprayed it with the nozzle down into the defrost vents from the upper dash - it has helped a bit but the root cause is still there which means it will come back. It smells like Ammonia, which is what the bacteria/mold produce in the condensate water.
There is a serious design flaw in these cooling system and I've brought my vehicle to be serviced 3 times they are still not able to fix it - they keep saying to change the cabin filter which was changed each time, and which doesn't resolve the issue at all.