Disclaimer: I am a lawyer, but I am only able to advise on the law of England and Wales. I have no particular knowledge of the law of the Bahamas, New York or Delaware. What follows in any case are generic comments: any particular situation will depend on its own facts and you should take specific legal advice.
We have laws to decide what happens in this situation. These laws generally strike a reasonable balance between the interests of the various groups affected, which is necessarily complex given that some people are bound to get burnt in an insolvency. This will be a particularly complex case because of the numerous entities involved and the cross-jurisdictional elements.
There is probably a right answer. Charity trustees must use their funds for their charitable purposes, so unless they are obliged to return the funds, they may well be forbidden from doing so. If funds are returned, they must only returned to a person who can give good receipt for them, and there may be a dispute as to who that person is. I would suggest that no funds be returned until confirmation has been obtained from all relevant jurisdictions, and this may take some time. In particular, it's unclear to me how the US Attorney for SDNY is getting in on this.
In these circumstances, I would strongly suggest that for now, any funds which might be FTX customer funds or otherwise the proceeds of fraud should be held separately pending confirmation of the position. Where funds have already been disbursed it's probably unnecessary (and not legally possible) to require the grantees to return them, but having been put on notice that the funds may be the proceeds of fraud, making further disbursements risks an accessory liability (which may attach to the individuals responsible).
If a UK charity is uncertain how to proceed, it may well be worth consulting the Charity Commission. I think particularly it would be worthwhile getting the Charity Commission to approve anything which might look like a voluntary transfer (e.g. if the trustees were minded to comply with a request from a liquidator to return funds without being compelled to do so).
Two possible legal consequences of this information I can think of off the top of my head (please consult your lawyer about your individual legal situation!):
Certainly consult an attorney if you are holding unspent FTX grant funds.
The above answer is focused only on bankruptcy issues. That’s almost water under the bridge at this point: it is a virtual certainty that all FTX grant funds can be clawed back by the bankruptcy estate. That’s not even a legitimate dispute any more. It’s just a matter of whether your particular grant is small enough that you might fly under the radar (unlikely, and if that’s the thin reed you are relying on then you are as unwise as an FTX investor).
The above answer overlooks that - since a federal criminal indictment has now issued - those holding unspent FTX grant funds are now holding known stolen proceeds. This is now the criminal law realm, not the bankruptcy realm. If someone robs a jewelry store and then gives you a stolen necklace, once you learn that the necklace is stolen property you do not have the right to keep it. You must return it to the jewelry store. If you otherwise dispose of it, after learning that it was stolen, you do so at your peril. Potential criminal peril.
People now know that all FTX funds were, and are, stolen. At this point there is no genuine question about what to do with unspent FTX funds.
It is remarkable (from someone outside the EA community) the self-serving denial and rationalization that is going on about what to do with unspent FTX grant funds. There is only one lawful (and ethical) answer.
Can you cite a criminal prosecution under these circumstances -- a scammer converts client funds and donates them to an unknowing charity, which does not return them on its own initiative? I can think of a counterexample -- Minnesota retroactively changed its fraudulent conveyance law to protect certain charities who had received donations from Ponzi scammer Tom Peters. That wouldn't have accomplished anything of note if retention of those funds was a crime. Somewhat similar discussion here with the American Cancer Society successfully defending a clawback in a Ponzi-like case. Do you think their lawyers just missed that these charities were holding on to stolen funds, and the federal courts that decided those cases couldn't be bothered to mention that in passing?
There has also been zero discussion of potential criminal consequences in any statement I've read by a lawyer in the press about this matter. Notably, if the USA for SDNY viewed the situation the way you do, he would have presumably done more than "ask that you work with us . . . " And the world's most powerful person with a law degree has been mum so far on whether he will return $5.2MM in contributions from SBF.