A building in Scarborough has been closed and tenants moved out after potential structural issues were discovered.