Police Scotland is facing a “significant” challenge because of the “colossal” number of officers who have been placed on restricted duties – often for medical reasons.