Tim Cooke wrote:
Unfortunately, due to the nature of what you have done, there is a chance that both companies will walk away and you'll be left with nothing.
In my opinion, this is not even the worst case scenario... being left with no job, but your reputation may be an acceptable solution here. A worse case would be to be blackballed, or marked by the companies, subsidiaries, and/or work agencies -- which will prevent you from ever working again (or passing another background check).
As Tim stated, good luck!!
Henry