I tested it on another world, with fall damage and the same type of trident killer with the same enchants, and they dropped gold. I then go back on my server and it still only drops its swords, the trident has impaling IV and channeling I, if it makes any difference.
P.S on the world, I just spawned them in with a spawn egg, and not building the whole gold farm thing.
I am using windows 10, but my friend is using mobile, and he's using a trident killer to kill them, and all they drop are their swords. But I just went on another world and killed them with fall damage and it gave me golden nuggets and rotten flesh. So could it be the trident.. or the enchant on the trident?
and for Adarsh, it's zombified piglins, and they are supposed to drop gold because that's how gold farms work.
I have a slightly different issue, everyone that attempts to join my server would get stuck on "Locating Server" then after roughly 2 hours on my BDS Server, then it suddenly works.
(the 2 hours would be no one joining the server nothing if someone does join that 2-hour time mark would reset)