Investors have lost billions after the collapse of the world’s third-largest cryptocurrency exchange, founded by Sam Bankman-Fried.