Barcelona faces costly Ter Stegen exit