check that VM size is valid