The school could be closed for up to nine months after cracks were discovered in an upstairs floor