SunEdison at risk of bankruptcy, unit says