A seaside attraction which owes £51 million to a council that helped set it up has filed for insolvency.