Angel City defender and New Zealand captain Ali Riley has been withdrawn from the Olympics by head coach Michael Mayne on medical grounds.