Have you tried melting enough ore to make a block or two using the casting basin? 9 ore blocks of both gold and iron should give you enough to make 2 gold blocks and 2 iron blocks. That may be enough to unclog your smeltery while saving the ore.
Next time, make an ingot cast using aluminium...